(timePeriod: string)
| 28 | const navigate = useNavigate(); |
| 29 | const location = useLocation(); |
| 30 | const setTimePeriod = (timePeriod: string) => { |
| 31 | const searchParams = new URLSearchParams(location.search); |
| 32 | searchParams.set("timePeriod", timePeriod); |
| 33 | navigate( |
| 34 | location.pathname + "?" + searchParams.toString() + location.hash, |
| 35 | { |
| 36 | replace: true, |
| 37 | }, |
| 38 | ); |
| 39 | setTimePeriodMinutes(parseInt(timePeriod)); |
| 40 | }; |
| 41 | |
| 42 | return ( |
| 43 | <SimpleSelect |
no test coverage detected