Skip to content

Commit

Permalink
refactor: replace main views with Coming Soon placeholder
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
cswni committed Nov 5, 2024
1 parent 84c09ac commit 42573f4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
8 changes: 6 additions & 2 deletions src/pages/dashboard/events.tsx
Original file line number Diff line number Diff line change
@@ -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";

// ----------------------------------------------------------------------

Expand All @@ -11,7 +13,9 @@ export default function CalendarPage() {
<title> Dashboard: Calendar</title>
</Helmet>

<CalendarView />
<BlankView>
<ComingSoonView />
</BlankView>
</>
);
}
8 changes: 6 additions & 2 deletions src/pages/dashboard/governance/list.tsx
Original file line number Diff line number Diff line change
@@ -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";

// ----------------------------------------------------------------------

Expand All @@ -11,7 +13,9 @@ export default function GovernanceList() {
<title> Dashboard: Kanban</title>
</Helmet>

<GovernanceListView />
<BlankView>
<ComingSoonView />
</BlankView>
</>
);
}
17 changes: 13 additions & 4 deletions src/pages/dashboard/studio.tsx
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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 = {
Expand Down Expand Up @@ -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);

Check warning on line 87 in src/pages/dashboard/studio.tsx

View workflow job for this annotation

GitHub Actions / Static Analysis and Test | Node 18

'open' is assigned a value but never used

Check warning on line 87 in src/pages/dashboard/studio.tsx

View workflow job for this annotation

GitHub Actions / Static Analysis and Test | Node 20

'open' is assigned a value but never used
const { selectedProfile: activeProfile } = useAuth(); // Obtener el perfil activo

// @ts-ignore eslint-disable-next-line @typescript-eslint/no-unused-vars
const handleOpen = () => setOpen(true);

Check warning on line 91 in src/pages/dashboard/studio.tsx

View workflow job for this annotation

GitHub Actions / Static Analysis and Test | Node 18

'handleOpen' is assigned a value but never used

Check warning on line 91 in src/pages/dashboard/studio.tsx

View workflow job for this annotation

GitHub Actions / Static Analysis and Test | Node 20

'handleOpen' is assigned a value but never used
const handleClose = () => setOpen(false);

Expand All @@ -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) {
Expand Down Expand Up @@ -211,7 +217,10 @@ export default function OverviewFilePage() {
<title> Dashboard: File</title>
</Helmet>

<Grid container spacing={2} style={{ height: 'calc(100vh - 5rem)', width: '100%', padding: '2rem 1.5rem 2rem 2rem' }}>
<BlankView>
<ComingSoonView />
</BlankView>
{/*<Grid container spacing={2} style={{ height: 'calc(100vh - 5rem)', width: '100%', padding: '2rem 1.5rem 2rem 2rem' }}>
<Grid item xs={8} style={{ height: '100%', display: 'flex', flexDirection: 'column', alignItems: 'flex-start', justifyContent: 'flex-start' }}>
<Grid container spacing={2} style={{ flexGrow: 1 }}>
<Grid item xs={4}>
Expand Down Expand Up @@ -296,7 +305,7 @@ export default function OverviewFilePage() {
Upload
</Button>
</Box>
</Modal>
</Modal>*/}
</>
);
}
2 changes: 1 addition & 1 deletion src/sections/coming-soon/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down

0 comments on commit 42573f4

Please sign in to comment.