Skip to content

Commit 5c83371

Browse files
committed
refactor: clean unused code
1 parent f60e0a8 commit 5c83371

File tree

9 files changed

+1
-515
lines changed

9 files changed

+1
-515
lines changed
Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
// NOSONAR_START
21
import { Box, Card, CardContent, Typography, Stack } from '@mui/material';
32
import { IconLock, IconPlayerPlay } from '@tabler/icons-react';
43
import { ethers } from 'ethers';
54
import { useGetPolicyTerms } from '@src/hooks/use-get-policy-terms.ts';
65
import { Address } from 'viem';
76
import LoadingButton from '@mui/lab/LoadingButton';
87
import { GLOBAL_CONSTANTS } from '@src/config-global.ts';
9-
// import {Icon} from "@iconify/react";
10-
// import NeonPaper from "@src/sections/publication/NeonPaperContainer.tsx";
11-
// import {useState} from "react";
12-
// import {COLORS} from "@src/layouts/config-layout.ts";
13-
// import {styled} from "@mui/material/styles";
148

159
interface Props {
1610
post: any;
@@ -24,8 +18,6 @@ export const SubscribeToUnlockCard = ({
2418
loadingSubscribe,
2519
post,
2620
}: Props) => {
27-
// const [loadingTrial, setLoadingTrial] = useState(false);
28-
2921
const { terms } = useGetPolicyTerms(
3022
GLOBAL_CONSTANTS.SUBSCRIPTION_POLICY_ADDRESS as Address,
3123
post?.by?.ownedBy?.address as Address
@@ -34,15 +26,6 @@ export const SubscribeToUnlockCard = ({
3426
const totalCostWei = terms?.amount ? terms?.amount * BigInt(durationDays) : 0; // Calculate total cost in Wei: DAILY_COST_WEI * durationDays
3527
const totalCostMMC = ethers.formatUnits(totalCostWei, 18); // Converts Wei to MMC
3628

37-
// const handleTrial = () => {
38-
// setLoadingTrial(true);
39-
// setTimeout(() => {
40-
// setLoadingTrial(false);
41-
// }, 2000);
42-
// };
43-
44-
// const RainbowEffect = loadingTrial ? NeonPaper : Box;
45-
4629
return (
4730
<Card
4831
sx={{
@@ -67,13 +50,6 @@ export const SubscribeToUnlockCard = ({
6750
This content is exclusively for members. Become part of our growing community to access
6851
behind-the-scenes content, exclusive posts, and much more!
6952
</Typography>
70-
71-
<Box sx={{
72-
display: 'flex',
73-
flexDirection: 'column',
74-
gap: 1.5,
75-
}}>
76-
7753
<LoadingButton
7854
variant="contained"
7955
color="primary"
@@ -85,19 +61,6 @@ export const SubscribeToUnlockCard = ({
8561
<IconPlayerPlay size={20} style={{ marginRight: 5 }} />
8662
Join
8763
</LoadingButton>
88-
{/*<RainbowEffect borderRadius={'10px'}*/}
89-
{/* animationSpeed={'3s'}*/}
90-
{/* padding={'2px'}*/}
91-
{/* width={'auto'}>*/}
92-
93-
{/* <StyledBoxGradient onClick={handleTrial} loading={loadingTrial}>*/}
94-
{/* <Icon icon="ic:outline-try" width="18" height="18" />*/}
95-
{/* <Typography variant="body2" sx={{ lineHeight: 1, fontWeight: '700', ml: 1 }}>*/}
96-
{/* Free trial*/}
97-
{/* </Typography>*/}
98-
{/* </StyledBoxGradient>*/}
99-
{/*</RainbowEffect>*/}
100-
</Box>
10164
<Box sx={{ mt: 3, borderRadius: 1 }}>
10265
<Typography variant="body2" color="textSecondary">
10366
Join now for just <strong>{totalCostMMC} MMC/month</strong> and access to{' '}
@@ -109,22 +72,3 @@ export const SubscribeToUnlockCard = ({
10972
</Card>
11073
);
11174
};
112-
113-
// const StyledBoxGradient = styled(LoadingButton)(() => ({
114-
// width: '100%',
115-
// background: `linear-gradient(90deg, rgba(254,255,118,1) 25%, rgba(212,190,58,1) 50%, rgba(189,119,255,0.5) 100%)`,
116-
// backgroundSize: '400%',
117-
// animation: 'gradientShift 10s infinite',
118-
// padding: '12px',
119-
// color: COLORS.GRAY_DARK,
120-
// borderRadius: '8px',
121-
// display: 'flex',
122-
// alignItems: 'center',
123-
// justifyContent: 'center',
124-
// '@keyframes gradientShift': {
125-
// '0%': { backgroundPosition: '0% 50%' },
126-
// '50%': { backgroundPosition: '100% 50%' },
127-
// '100%': { backgroundPosition: '0% 50%' },
128-
// },
129-
// }));
130-
// NOSONAR_END

src/pages/dashboard/marketing.tsx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
// NOSONAR_START
21
import BlankView from '../../sections/blank/view';
32
import ComingSoonView from '../../sections/coming-soon/view';
4-
// import {useSelector} from "react-redux";
5-
// import {canViewSection} from "@src/pages/dashboard/ownership.tsx";
6-
// import Header from "@src/layouts/dashboard/header.tsx";
7-
// import HeaderContent from "@src/layouts/dashboard/header-content.tsx";
8-
// import MarketingView from "@src/sections/marketing";
93
import { GLOBAL_CONSTANTS } from '@src/config-global.ts';
104
import { OgMetaTags } from '@src/components/og-meta-tags.tsx';
115

126
// ----------------------------------------------------------------------
137

148
export default function ChatPage() {
15-
// const sessionData = useSelector((state: any) => state.auth.session);
169
return (
1710
<OgMetaTags
1811
title="Watchit: Marketing (COMING SOON)"
@@ -22,19 +15,6 @@ export default function ChatPage() {
2215
<BlankView>
2316
<ComingSoonView />
2417
</BlankView>
25-
26-
{/*{*/}
27-
{/* canViewSection(sessionData) ? (<><Header>*/}
28-
{/* <HeaderContent title="Marketing" />*/}
29-
{/* </Header>*/}
30-
{/* <MarketingView />*/}
31-
{/* </>) : (<>*/}
32-
{/* <BlankView>*/}
33-
{/* <ComingSoonView />*/}
34-
{/* </BlankView>*/}
35-
{/* </>)*/}
36-
{/*}*/}
3718
</OgMetaTags>
3819
);
3920
}
40-
// NOSONAR_END

src/sections/marketing/components/marketing-process-content-modal.tsx

Lines changed: 0 additions & 117 deletions
This file was deleted.

src/sections/marketing/components/marketing-process-modal.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/sections/marketing/components/marketing-process.tsx

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)