Default to showing weekly bet graph
This commit is contained in:
parent
aa3647e0f3
commit
258b2a318f
|
@ -14,7 +14,7 @@ export const PortfolioValueSection = memo(
|
||||||
}) {
|
}) {
|
||||||
const { disableSelector, userId } = props
|
const { disableSelector, userId } = props
|
||||||
|
|
||||||
const [portfolioPeriod, setPortfolioPeriod] = useState<Period>('allTime')
|
const [portfolioPeriod, setPortfolioPeriod] = useState<Period>('weekly')
|
||||||
const [portfolioHistory, setUsersPortfolioHistory] = useState<
|
const [portfolioHistory, setUsersPortfolioHistory] = useState<
|
||||||
PortfolioMetrics[]
|
PortfolioMetrics[]
|
||||||
>([])
|
>([])
|
||||||
|
@ -53,13 +53,15 @@ export const PortfolioValueSection = memo(
|
||||||
{!disableSelector && (
|
{!disableSelector && (
|
||||||
<select
|
<select
|
||||||
className="select select-bordered self-start"
|
className="select select-bordered self-start"
|
||||||
|
value={portfolioPeriod}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
setPortfolioPeriod(e.target.value as Period)
|
setPortfolioPeriod(e.target.value as Period)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<option value="allTime">{allTimeLabel}</option>
|
<option value="allTime">{allTimeLabel}</option>
|
||||||
<option value="weekly">7 days</option>
|
<option value="weekly">Last 7d</option>
|
||||||
<option value="daily">24 hours</option>
|
{/* Note: 'daily' seems to be broken? */}
|
||||||
|
{/* <option value="daily">Last 24h</option> */}
|
||||||
</select>
|
</select>
|
||||||
)}
|
)}
|
||||||
</Row>
|
</Row>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user