Skip to content

Commit

Permalink
fix: remove redundant variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Yucohny authored Nov 13, 2023
1 parent e07e53e commit 3e95fc1
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions src/components/Splash/Splash.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Import External Dependencies
import { lazy, Suspense, useState, useEffect } from 'react';
import { useState, useEffect } from 'react';

// Import Components
import Container from '../Container/Container';
Expand All @@ -18,36 +18,7 @@ import './Splash.scss';

// const Support = lazy(() => import('../Support/Support'));

const SponsorsPlaceholder = () => (
<>
<h2>Latest Sponsors</h2>
<PlaceholderComponent />

<h2>Platinum Sponsors</h2>
<PlaceholderComponent />

<h2>Gold Sponsors</h2>
<PlaceholderComponent />

<h2>Silver Sponsors</h2>
<PlaceholderComponent />

<h2>Bronze Sponsors</h2>
<PlaceholderComponent />

<h2>Backers</h2>
<PlaceholderComponent />
</>
);

const Splash = () => {
const [showSponsors, setShowSponsors] = useState(false);
const [supportType, setSupportType] = useState(() =>
Math.random() < 0.33 ? 'monthly' : 'total'
);
useEffect(() => {
if (isClient) setShowSponsors(true);
}, []);
return (
<div className="splash">
<SplashViz />
Expand Down

0 comments on commit 3e95fc1

Please sign in to comment.