diff --git a/src/components/imagePreview/index.tsx b/src/components/imagePreview/index.tsx index 286d5fd..51258d1 100644 --- a/src/components/imagePreview/index.tsx +++ b/src/components/imagePreview/index.tsx @@ -13,8 +13,7 @@ interface PropsType { borderRadius?: string | number setPath: (e: string) => void } - -const ImagePreview = ({ +export const ImagePreview = ({ setPath, image, boxColor, @@ -104,5 +103,3 @@ const ImagePreview = ({ ) } - -export default ImagePreview diff --git a/src/pages/setting-page/setting-page.tsx b/src/pages/setting-page/setting-page.tsx index 2cc7961..f59650e 100644 --- a/src/pages/setting-page/setting-page.tsx +++ b/src/pages/setting-page/setting-page.tsx @@ -10,7 +10,7 @@ import Color from '@/constants/color' // ** Componet Imports import { InputTextField } from '@/components/TextInput' -import ImagePreview from '@/components/ImagePreview' +import { ImagePreview } from '@/components/ImagePreview' // ** Type Imporst import type { UserV0 } from '@/types/user' diff --git a/src/pages/workspace-add-page/workspace-add-page.tsx b/src/pages/workspace-add-page/workspace-add-page.tsx index ebf137c..13c3def 100644 --- a/src/pages/workspace-add-page/workspace-add-page.tsx +++ b/src/pages/workspace-add-page/workspace-add-page.tsx @@ -5,7 +5,7 @@ import { ChangeEvent } from 'react' import { Box, Button, Typography } from '@mui/material' // ** Component Imports -import ImagePreview from '@/components/ImagePreview' +import { ImagePreview } from '@/components/ImagePreview' import { InputTextField } from '@/components/TextInput' // ** Constant Imports diff --git a/src/pages/workspace-page/workspace-page.tsx b/src/pages/workspace-page/workspace-page.tsx index ed1a9cc..6eb9a93 100644 --- a/src/pages/workspace-page/workspace-page.tsx +++ b/src/pages/workspace-page/workspace-page.tsx @@ -9,7 +9,7 @@ import Color from '@/constants/color' // ** Component Imports import { InputTextField } from '@/components/TextInput' -import ImagePreview from '@/components/ImagePreview' +import { ImagePreview } from '@/components/ImagePreview' import ImageBox from '@/components/Image' import { ContextBox } from '@/components/ContentBox'