File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,12 @@ import React from "react";
22import styled , { css } from "styled-components" ;
33
44import { useToggle } from "react-use" ;
5+ import { useParams } from "react-router-dom" ;
56
67import { landscapeStyle } from "styles/landscapeStyle" ;
78
9+ import { decodeURIFilter } from "utils/uri" ;
10+
811import HowItWorks from "components/HowItWorks" ;
912import JurorLevels from "components/Popup/MiniGuides/JurorLevels" ;
1013
@@ -34,9 +37,12 @@ const StyledLabel = styled.label`
3437
3538export const MobileHeader : React . FC = ( ) => {
3639 const [ isJurorLevelsMiniGuideOpen , toggleJurorLevelsMiniGuide ] = useToggle ( false ) ;
40+ const { filter } = useParams ( ) ;
41+ const { id : searchValue } = decodeURIFilter ( filter ?? "all" ) ;
42+
3743 return (
3844 < Container >
39- < StyledLabel > Ranking</ StyledLabel >
45+ < StyledLabel > { ! searchValue ? " Ranking" : "Jurors" } </ StyledLabel >
4046 < HowItWorks
4147 isMiniGuideOpen = { isJurorLevelsMiniGuideOpen }
4248 toggleMiniGuide = { toggleJurorLevelsMiniGuide }
You can’t perform that action at this time.
0 commit comments