fix(fix-render): fix notifications render

keep-around/c565ff1b550717786d8ee4b348e0fa82262be550
Andrei Dekterev 3 years ago
parent f8f8ce5f50
commit 29f9ae545b
  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