-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: combine all components to form databox
- Loading branch information
1 parent
352ce37
commit 172a6a8
Showing
3 changed files
with
88 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react'; | ||
import styles from './VegetationChangeDatabox.module.scss'; | ||
import Dropdown from './Dropdown'; | ||
import BiomassChangeIcon from '../icons/BiomassChangeIcon'; | ||
import VegetationSlider from './VegetationSlider'; | ||
import NewInfoIcon from '../icons/NewInfoIcon'; | ||
const Databox = ({ startYear }) => { | ||
return ( | ||
<div className={styles.databoxContainer}> | ||
<div className={styles.dropdownInfoContainer}> | ||
<Dropdown | ||
labelIcon={<BiomassChangeIcon />} | ||
labelTitle={'Biomass Change'} | ||
isOpen={false} | ||
/> | ||
<p className={styles.startYearText}>Since project begin {startYear}</p> | ||
</div> | ||
<div className={styles.divider}></div> | ||
<div className={styles.sliderInfoContainer}> | ||
<VegetationSlider position={5} /> | ||
<div className={styles.infoIcon}> | ||
<NewInfoIcon height={10} width={10} color={'#BDBDBD'} /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Databox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import Databox from '../VegetationChangeDatabox/Databox'; | ||
|
||
const meta: Meta<typeof Databox> = { | ||
component: Databox, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof Databox>; | ||
|
||
export const Preview: Story = { | ||
args: { | ||
startYear: 2018, | ||
}, | ||
}; |