fix(#2737): fixed point 1 and 6

keep-around/b214ac7012ef42593bee62c207888a2593bc5a38
Rakov Roman 3 years ago
parent cf70e3db51
commit 60dedbb509
  1. 33781
      package-lock.json
  2. 3
      src/features/HeaderFilters/store/hooks/index.tsx
  3. 7
      src/features/TournamentList/components/CollapseTournament/index.tsx

33781
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -36,6 +36,7 @@ export const useFilters = () => {
const resetFilters = useCallback(() => { const resetFilters = useCallback(() => {
setSelectedDate(new Date()) setSelectedDate(new Date())
}, [setSelectedDate]) }, [setSelectedDate])
useEffect(() => { useEffect(() => {
localStorage.setItem('filters', JSON.stringify({ localStorage.setItem('filters', JSON.stringify({
selectTournament, selectTournament,
@ -43,7 +44,7 @@ export const useFilters = () => {
selectedLeague, selectedLeague,
})) }))
// eslint-disable-next-line // eslint-disable-next-line
}, [selectTournament]) }, [selectTournament, selectedDate])
useEffect(() => { useEffect(() => {
if (!search) { if (!search) {

@ -1,3 +1,5 @@
import { Fragment } from 'react'
import { ProfileTypes } from 'config' import { ProfileTypes } from 'config'
import { T9n } from 'features/T9n' import { T9n } from 'features/T9n'
@ -84,9 +86,14 @@ export const CollapseTournament = ({
)} )}
</SecondaryInfo> </SecondaryInfo>
<CountMatches> <CountMatches>
{tournamentMatches.length > 1 ? (
<Fragment>
{tournamentMatches.length} {tournamentMatches.length}
&nbsp; &nbsp;
<T9n t='broadcasts' /> <T9n t='broadcasts' />
</Fragment>
)
: <T9n t='broadcast' />}
</CountMatches> </CountMatches>
</Info> </Info>
</CardWrapper> </CardWrapper>

Loading…
Cancel
Save