diff --git a/src/components/common/ArcProgress/index.tsx b/src/components/common/ArcProgress/index.tsx index 51bdc35a..cb269d0e 100644 --- a/src/components/common/ArcProgress/index.tsx +++ b/src/components/common/ArcProgress/index.tsx @@ -4,12 +4,12 @@ import { describeArc } from '~/utils/dom'; import styles from './styles.module.scss'; -interface IProps { +interface Props { size: number; progress?: number; } -export const ArcProgress: FC = ({ size, progress = 0 }) => ( +export const ArcProgress: FC = ({ size, progress = 0 }) => ( = observer(({ children, hydratedOnly }) => { +const Authorized: FC = observer(({ children, hydratedOnly }) => { const { isUser, fetched } = useAuth(); if (!isUser || (!hydratedOnly && !fetched)) return null; diff --git a/src/components/common/BetterScrollDialog/index.tsx b/src/components/common/BetterScrollDialog/index.tsx index fe9780e1..25d5fdb3 100644 --- a/src/components/common/BetterScrollDialog/index.tsx +++ b/src/components/common/BetterScrollDialog/index.tsx @@ -7,7 +7,7 @@ import { LoaderCircle } from '~/components/common/LoaderCircle'; import styles from './styles.module.scss'; -interface IProps { +interface Props { children: ReactChild; header?: JSX.Element; footer?: JSX.Element; @@ -23,7 +23,7 @@ interface IProps { onClose?: () => void; } -const BetterScrollDialog: FC = ({ +const BetterScrollDialog: FC = ({ children, header, footer, diff --git a/src/components/common/BlurWrapper/index.tsx b/src/components/common/BlurWrapper/index.tsx index f83ed2c4..da935117 100644 --- a/src/components/common/BlurWrapper/index.tsx +++ b/src/components/common/BlurWrapper/index.tsx @@ -4,9 +4,9 @@ import classNames from 'classnames'; import styles from './styles.module.scss'; -type IProps = AllHTMLAttributes & { is_blurred: boolean }; +type Props = AllHTMLAttributes & { is_blurred: boolean }; -export const BlurWrapper: FC = ({ children, is_blurred }) => ( +export const BlurWrapper: FC = ({ children, is_blurred }) => (
{children}
diff --git a/src/components/common/BottomContainer/index.tsx b/src/components/common/BottomContainer/index.tsx new file mode 100644 index 00000000..ed024ff0 --- /dev/null +++ b/src/components/common/BottomContainer/index.tsx @@ -0,0 +1,11 @@ +import styles from './styles.module.scss'; + +const BottomContainer = ({ children }) => ( +
+
+
+
+
+); + +export { BottomContainer }; diff --git a/src/containers/main/BottomContainer/styles.module.scss b/src/components/common/BottomContainer/styles.module.scss similarity index 100% rename from src/containers/main/BottomContainer/styles.module.scss rename to src/components/common/BottomContainer/styles.module.scss diff --git a/src/components/common/CellGrid/index.tsx b/src/components/common/CellGrid/index.tsx index 99fc4c85..2f98d3b2 100644 --- a/src/components/common/CellGrid/index.tsx +++ b/src/components/common/CellGrid/index.tsx @@ -4,12 +4,12 @@ import classNames from 'classnames'; import styles from './styles.module.scss'; -type IProps = HTMLAttributes & { +type Props = HTMLAttributes & { children: any; size: number; }; -const CellGrid: FC = ({ children, size, className, ...props }) => ( +const CellGrid: FC = ({ children, size, className, ...props }) => (
= ({ className, children }) => ( +const Container: FC = ({ className, children }) => (
{children}
); diff --git a/src/containers/main/Container/styles.module.scss b/src/components/common/Container/styles.module.scss similarity index 100% rename from src/containers/main/Container/styles.module.scss rename to src/components/common/Container/styles.module.scss diff --git a/src/components/common/CoverBackdrop/index.tsx b/src/components/common/CoverBackdrop/index.tsx index 4cce6607..abb00e1a 100644 --- a/src/components/common/CoverBackdrop/index.tsx +++ b/src/components/common/CoverBackdrop/index.tsx @@ -8,11 +8,11 @@ import { getURL } from '~/utils/dom'; import styles from './styles.module.scss'; -interface IProps { +interface Props { cover: IUser['cover']; } -const CoverBackdrop: FC = ({ cover }) => { +const CoverBackdrop: FC = ({ cover }) => { const ref = useRef(null); const [is_loaded, setIsLoaded] = useState(false); diff --git a/src/components/common/DialogTitle/index.tsx b/src/components/common/DialogTitle/index.tsx index b5de8560..d1713f95 100644 --- a/src/components/common/DialogTitle/index.tsx +++ b/src/components/common/DialogTitle/index.tsx @@ -2,11 +2,11 @@ import { FC, ReactNode } from 'react'; import styles from './styles.module.scss'; -interface IProps { +interface Props { children: ReactNode; } -const DialogTitle: FC = ({ children }) => ( +const DialogTitle: FC = ({ children }) => (

{children}

); diff --git a/src/components/common/Filler/index.tsx b/src/components/common/Filler/index.tsx index 2f3c6ac7..f41863c3 100644 --- a/src/components/common/Filler/index.tsx +++ b/src/components/common/Filler/index.tsx @@ -4,8 +4,8 @@ import classNames from 'classnames'; import styles from './styles.module.scss'; -type IProps = HTMLAttributes; +type Props = HTMLAttributes; -export const Filler: FC = ({ className = '', ...props }) => ( +export const Filler: FC = ({ className = '', ...props }) => (
); diff --git a/src/components/main/Footer/index.tsx b/src/components/common/Footer/index.tsx similarity index 84% rename from src/components/main/Footer/index.tsx rename to src/components/common/Footer/index.tsx index 1fa4f3ff..fcb770aa 100644 --- a/src/components/main/Footer/index.tsx +++ b/src/components/common/Footer/index.tsx @@ -2,9 +2,9 @@ import { FC, memo } from 'react'; import styles from './styles.module.scss'; -interface IProps {} +interface Props {} -const Footer: FC = memo(() => ( +const Footer: FC = memo(() => (