Skip to content

Commit

Permalink
[#549] admin checklist fix
Browse files Browse the repository at this point in the history
  • Loading branch information
m-vuk committed Sep 15, 2024
1 parent 864875b commit 270d436
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions frontend/app/(dashboard)/[city]/page.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
.checklistContainer{
display: flex;
a{
width:30%
width:32%
}
a:nth-child(2){
margin:0 3%;
margin:0 2%;
}
}
12 changes: 6 additions & 6 deletions frontend/app/(dashboard)/[city]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,17 @@ export default async function CityDashboard({ params }: { params: { city: string
</NavigationTile>
</Link> : <></>

const verwaltung = Array.isArray(city.assessment_administration) ? <Link href={`${params.city}/verwaltungsstrukturen_checkliste`} style={{ display: "inline-block", textDecoration: 'none' }}>
const verwaltung = Array.isArray(city.administration_checklist) ? <Link href={`${params.city}/verwaltungsstrukturen_checkliste`} style={{ display: "inline-block", textDecoration: 'none' }}>
<NavigationTile
className={styles.tile}
title="Wo steht die Verwaltung?"

>
<Image
width={305}
height={132}
src={indicator2}
alt={"Fortschritt zur Klimaneutralität"}
<ChecklistIndicator
total={city.administration_checklist.length}
checked={city.administration_checklist.filter((item: ChecklistItem) => item.is_checked).length}
startYear={new Date(city.resolution_date).getFullYear()}
endYear={city.target_year}
/>
</NavigationTile>
</Link> : <></>
Expand Down

0 comments on commit 270d436

Please sign in to comment.