|
|
|
|
@ -7,7 +7,12 @@ import { |
|
|
|
|
import { MatchStatuses, useHeaderFiltersStore } from '../../store' |
|
|
|
|
|
|
|
|
|
export const MatchStatusFilter = () => { |
|
|
|
|
const { selectedMatchStatus, setSelectedMatchStatus } = useHeaderFiltersStore() |
|
|
|
|
const { |
|
|
|
|
isTodaySelected, |
|
|
|
|
selectedMatchStatus, |
|
|
|
|
setSelectedMatchStatus, |
|
|
|
|
} = useHeaderFiltersStore() |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<RadioButtonGroup> |
|
|
|
|
<RadioButton |
|
|
|
|
@ -15,6 +20,7 @@ export const MatchStatusFilter = () => { |
|
|
|
|
selected={selectedMatchStatus === MatchStatuses.Live} |
|
|
|
|
onClick={() => setSelectedMatchStatus(MatchStatuses.Live)} |
|
|
|
|
buttonWidth={80} |
|
|
|
|
disabled={!isTodaySelected} |
|
|
|
|
> |
|
|
|
|
<T9n t='match_status_live' /> |
|
|
|
|
</RadioButton> |
|
|
|
|
@ -22,6 +28,7 @@ export const MatchStatusFilter = () => { |
|
|
|
|
selected={selectedMatchStatus === MatchStatuses.Finished} |
|
|
|
|
onClick={() => setSelectedMatchStatus(MatchStatuses.Finished)} |
|
|
|
|
buttonWidth={121} |
|
|
|
|
disabled={!isTodaySelected} |
|
|
|
|
> |
|
|
|
|
<T9n t='match_status_finished' /> |
|
|
|
|
</RadioButton> |
|
|
|
|
@ -29,6 +36,7 @@ export const MatchStatusFilter = () => { |
|
|
|
|
selected={selectedMatchStatus === MatchStatuses.Soon} |
|
|
|
|
onClick={() => setSelectedMatchStatus(MatchStatuses.Soon)} |
|
|
|
|
buttonWidth={87} |
|
|
|
|
disabled={!isTodaySelected} |
|
|
|
|
> |
|
|
|
|
<T9n t='match_status_soon' /> |
|
|
|
|
</RadioButton> |
|
|
|
|
|