From 42573f48b7a10df5a6d26c35d4e70f30aea9ce78 Mon Sep 17 00:00:00 2001 From: Carlos Andres Perez Ubeda Date: Tue, 5 Nov 2024 13:50:14 -0600 Subject: [PATCH] refactor: replace main views with Coming Soon placeholder - Updated events, studio, and governance list pages to temporarily use `ComingSoonView` within `BlankView`. - Commented out the original import statements and usage of the main views. - Adjusted countdown date in Coming Soon component to new date. --- src/pages/dashboard/events.tsx | 8 ++++++-- src/pages/dashboard/governance/list.tsx | 8 ++++++-- src/pages/dashboard/studio.tsx | 17 +++++++++++++---- src/sections/coming-soon/view.tsx | 2 +- 4 files changed, 26 insertions(+), 9 deletions(-) diff --git a/src/pages/dashboard/events.tsx b/src/pages/dashboard/events.tsx index 6d638a201..beca4edec 100644 --- a/src/pages/dashboard/events.tsx +++ b/src/pages/dashboard/events.tsx @@ -1,6 +1,8 @@ import { Helmet } from 'react-helmet-async'; // sections -import { CalendarView } from '@src/sections/calendar/view'; +// import { CalendarView } from '@src/sections/calendar/view'; +import ComingSoonView from "@src/sections/coming-soon/view.tsx"; +import BlankView from "@src/sections/blank/view.tsx"; // ---------------------------------------------------------------------- @@ -11,7 +13,9 @@ export default function CalendarPage() { Dashboard: Calendar - + + + ); } diff --git a/src/pages/dashboard/governance/list.tsx b/src/pages/dashboard/governance/list.tsx index 57091960e..f419f5708 100644 --- a/src/pages/dashboard/governance/list.tsx +++ b/src/pages/dashboard/governance/list.tsx @@ -1,6 +1,8 @@ import { Helmet } from 'react-helmet-async'; // sections -import { GovernanceListView } from '../../../sections/governance/view'; +// import { GovernanceListView } from '../../../sections/governance/view'; +import ComingSoonView from "@src/sections/coming-soon/view.tsx"; +import BlankView from "@src/sections/blank/view.tsx"; // ---------------------------------------------------------------------- @@ -11,7 +13,9 @@ export default function GovernanceList() { Dashboard: Kanban - + + + ); } diff --git a/src/pages/dashboard/studio.tsx b/src/pages/dashboard/studio.tsx index 97e8ada93..fb11cabde 100644 --- a/src/pages/dashboard/studio.tsx +++ b/src/pages/dashboard/studio.tsx @@ -1,4 +1,4 @@ -import { Skeleton, Grid, Box, Button, Modal } from '@mui/material'; +// import { Skeleton, Grid, Box, Button, Modal } from '@mui/material'; import { Helmet } from 'react-helmet-async'; import { useState } from 'react'; import { @@ -7,11 +7,13 @@ import { useCreatePost, useCurrencies } from '@lens-protocol/react-web'; import { video, MetadataAttributeType, AnyMedia } from '@lens-protocol/metadata'; -import Typography from '@mui/material/Typography'; +// import Typography from '@mui/material/Typography'; import axios from 'axios'; import { useAuth } from '../../hooks/use-auth'; import uuidv4 from '../../utils/uuidv4'; import { LoadingScreen } from '../../components/loading-screen'; +import ComingSoonView from "@src/sections/coming-soon/view.tsx"; +import BlankView from "@src/sections/blank/view.tsx"; // Metadatos de la pelĂ­cula en una constante const movieMetadata = { @@ -81,9 +83,11 @@ const uploadToPinata = async (metadata: any) => { // ---------------------------------------------------------------------- export default function OverviewFilePage() { + // @ts-ignore eslint-disable-next-line @typescript-eslint/no-unused-vars const [open, setOpen] = useState(false); const { selectedProfile: activeProfile } = useAuth(); // Obtener el perfil activo + // @ts-ignore eslint-disable-next-line @typescript-eslint/no-unused-vars const handleOpen = () => setOpen(true); const handleClose = () => setOpen(false); @@ -96,6 +100,8 @@ export default function OverviewFilePage() { console.log('activeProfile') console.log(activeProfile) + // @ts-ignore eslint-disable-next-line @typescript-eslint/no-unused-vars + // eslint-disable-next-line @typescript-eslint/no-unused-vars const handleSubmit = async () => { try { if (!activeProfile) { @@ -211,7 +217,10 @@ export default function OverviewFilePage() { Dashboard: File - + + + + {/* @@ -296,7 +305,7 @@ export default function OverviewFilePage() { Upload - + */} ); } diff --git a/src/sections/coming-soon/view.tsx b/src/sections/coming-soon/view.tsx index 9b008f585..f65d93314 100644 --- a/src/sections/coming-soon/view.tsx +++ b/src/sections/coming-soon/view.tsx @@ -10,7 +10,7 @@ import { ComingSoonIllustration } from '@src/assets/illustrations'; // ---------------------------------------------------------------------- export default function ComingSoonView() { - const { days, hours, minutes, seconds } = useCountdownDate(new Date('10/01/2024 21:30')); + const { days, hours, minutes, seconds } = useCountdownDate(new Date('11/20/2024 21:30')); return ( <>