Skip to content

Commit

Permalink
chore(imports): standardize way to import image assets (#1509)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshzj authored Sep 20, 2023
1 parent ae6b074 commit 4ec6618
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/assets/images/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ export * from "./HomepageStartEditingImage"
export * from "./SiteLaunchSuccessImage"
export * from "./SiteLaunchFailureImage"
export * from "./SiteLaunchPendingImage"
export * from "./NotFoundSubmarineImage"
2 changes: 1 addition & 1 deletion src/features/AnnouncementModal/Announcements.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IsomerThumbsUp } from "assets"
import { IsomerWaitingLine } from "assets/images/IsomerWaitingLine"
import { IsomerWaitingLine } from "assets/images"
import { AnnouncementBatch } from "types/announcements"

export const ANNOUNCEMENT_BATCH: AnnouncementBatch[] = [
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/NotFoundPage/NotFoundPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from "@chakra-ui/react"
import { Link as RouterLink, useLocation } from "react-router-dom"

import { NotFoundSubmarineImage } from "assets/images/NotFoundSubmarineImage"
import { NotFoundSubmarineImage } from "assets/images"

const GRID_LAYOUT: Pick<
GridProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { useGetComments, useUpdateReadComments } from "hooks/commentsHooks"

import { getDateTimeFromUnixTime } from "utils/date"

import { EmptyChatImage } from "assets/images/EmptyChatImage"
import { EmptyChatImage } from "assets/images"
import { CommentProps } from "types/comments"

import { SendCommentForm } from "./SendCommentForm"
Expand Down

0 comments on commit 4ec6618

Please sign in to comment.