Skip to content

Commit

Permalink
fix: hiding consumption parts (data not available)
Browse files Browse the repository at this point in the history
  • Loading branch information
Malena-Guallar committed May 21, 2024
1 parent 32b8f50 commit 908e4ac
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ const DashboardPage = () => {
<SalmonCollapseSection />
<SalmonFarmingSection />
<TopCountriesSection />
<SalmonConsumptionSection />
{/* <SalmonConsumptionSection /> */}
</section>

<section>
<TitleBlock id="companies" title="Entreprises" />
<MainProductionSection />
<LandPlantsSection />
<SalmonConsumptionBisSection />
{/* <SalmonConsumptionBisSection /> */}
</section>

<section>
Expand Down Expand Up @@ -265,12 +265,6 @@ const TopCountriesSection = () => {

const SalmonConsumptionSection = () => {

Check warning on line 266 in src/app/dashboard/page.tsx

View workflow job for this annotation

GitHub Actions / ⬣ ESLint, ʦ TypeScript, 💅 Prettier, and 🃏 Test

'SalmonConsumptionSection' is assigned a value but never used. Allowed unused vars must match /^_/u

const [data, setData] = useState(false)

if (!data){
return <></>
}

return (
<CustomDashboardSection
title="Consommation de saumon"
Expand Down Expand Up @@ -399,12 +393,6 @@ const LandPlantsSection = () => {
};
const SalmonConsumptionBisSection = () => {

Check warning on line 394 in src/app/dashboard/page.tsx

View workflow job for this annotation

GitHub Actions / ⬣ ESLint, ʦ TypeScript, 💅 Prettier, and 🃏 Test

'SalmonConsumptionBisSection' is assigned a value but never used. Allowed unused vars must match /^_/u

const [data, setData] = useState(false)

if (!data){
return <></>
}

return (
<CustomDashboardSection
title="Consommation"
Expand Down

0 comments on commit 908e4ac

Please sign in to comment.