Merge pull request 'fix(fix-render): fix notifications render' (#3) from fix-notifications-render into develop

Reviewed-on: https://gitea.instat.tv/InStat/spa_instat_tv/pulls/3
keep-around/c565ff1b550717786d8ee4b348e0fa82262be550
andrey.dekterev 3 years ago
commit cf7ed15fa3
  1. 2
      src/features/Common/Input/styled.tsx
  2. 4
      src/features/Matches/hooks.tsx
  3. 3
      src/features/Search/hooks/index.tsx

@ -232,7 +232,7 @@ export const LabelBefore = styled(LabelAfter)`
padding-top: 5px;
`
export const ScTooltip = styled.div`
export const ScTooltip = styled.span`
display: none;
position: absolute;
font-weight: 600;

@ -69,6 +69,10 @@ export const useMatches = ({ fetch }: Props) => {
useEffect(() => {
fetchMatches(0).then(setMatches)
pageRef.current = 1
return () => {
setMatches(initialState)
}
}, [fetchMatches, userPreferences])
const preparedMatches = useMemo(() => ({

@ -58,6 +58,9 @@ export const useSearch = () => {
} else {
open()
}
return () => {
setSelectedTab(ProfileTypes.TOURNAMENTS)
}
}, [searchItems, close, open])
const closePopup = () => {

Loading…
Cancel
Save