Skip to content

Commit

Permalink
feat: add coming soon label
Browse files Browse the repository at this point in the history
  • Loading branch information
prachigarg19 committed Mar 15, 2024
1 parent ec7cf49 commit e30e5b9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
3 changes: 2 additions & 1 deletion public/static/locales/en/projectDetails.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"speciesDensity": "Species Density",
"projectBegin": "Since project begin",
"avg": "Average",
"tons": "tons"
"tons": "tons",
"comingSoon": "coming soon"
}
19 changes: 14 additions & 5 deletions src/temp/VegetationChangeDatabox/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,32 @@ const Dropdown = ({ labelIcon, labelTitle, isOpen }: Props) => {
{
icon: <BiomassChangeIcon />,
title: t('biomassChange'),
},
{
icon: <PotentialBiomassIcon />,
title: t('potentialBiomass'),
isFeaturePending: false,
},
{
icon: <TreeCoverIcon />,
title: t('treeCover'),
isFeaturePending: false,
},
{
icon: <PotentialBiomassIcon />,
title: t('potentialBiomass'),
isFeaturePending: true,
},
{
icon: <FireIcon />,
title: t('fireRisk'),
isFeaturePending: true,
},
{
icon: <FloodingRiskIcon />,
title: t('floodingRisk'),
isFeaturePending: true,
},
{
icon: <SpeciesDensityIcon />,
title: t('speciesDensity'),
isFeaturePending: true,
},
];
const [selectedOption, setSelectedOption] = useState({
Expand All @@ -63,7 +69,10 @@ const Dropdown = ({ labelIcon, labelTitle, isOpen }: Props) => {
}`}
>
<div className={styles.optionIcon}>{option.icon}</div>
<p>{option.title}</p>
<div className={styles.optionLabel}>
<p>{option.title}</p>
{option.isFeaturePending && <span>{t('comingSoon')}</span>}
</div>
</li>
))}
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@
align-items: center;
justify-content: center;
}
.optionLabel {
display: flex;
flex-direction: column;
span {
font-size: 4px;
letter-spacing: 1.48px;
text-transform: uppercase;
}
}
}
.selected {
border-radius: 4px;
Expand Down

0 comments on commit e30e5b9

Please sign in to comment.