:)
This commit is contained in:
parent
b7df1a7043
commit
87511fcaed
|
@ -147,34 +147,3 @@ export function PortfolioPeriodSelection(props: {
|
||||||
</Row>
|
</Row>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GraphToggle(props: {
|
|
||||||
setGraphMode: (mode: 'profit' | 'value') => void
|
|
||||||
graphMode: string
|
|
||||||
}) {
|
|
||||||
const { setGraphMode, graphMode } = props
|
|
||||||
return (
|
|
||||||
<Row className="relative mt-1 ml-1 items-center gap-1.5 sm:ml-0 sm:gap-2">
|
|
||||||
<PillButton
|
|
||||||
selected={graphMode === 'value'}
|
|
||||||
onSelect={() => {
|
|
||||||
setGraphMode('value')
|
|
||||||
}}
|
|
||||||
xs={true}
|
|
||||||
className="z-50"
|
|
||||||
>
|
|
||||||
Value
|
|
||||||
</PillButton>
|
|
||||||
<PillButton
|
|
||||||
selected={graphMode === 'profit'}
|
|
||||||
onSelect={() => {
|
|
||||||
setGraphMode('profit')
|
|
||||||
}}
|
|
||||||
xs={true}
|
|
||||||
className="z-50"
|
|
||||||
>
|
|
||||||
Profit
|
|
||||||
</PillButton>
|
|
||||||
</Row>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user