File tree 1 file changed +7
-1
lines changed
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";
2
2
import styled , { css } from "styled-components" ;
3
3
4
4
import { useToggle } from "react-use" ;
5
+ import { useParams } from "react-router-dom" ;
5
6
6
7
import { landscapeStyle } from "styles/landscapeStyle" ;
7
8
9
+ import { decodeURIFilter } from "utils/uri" ;
10
+
8
11
import HowItWorks from "components/HowItWorks" ;
9
12
import JurorLevels from "components/Popup/MiniGuides/JurorLevels" ;
10
13
@@ -34,9 +37,12 @@ const StyledLabel = styled.label`
34
37
35
38
export const MobileHeader : React . FC = ( ) => {
36
39
const [ isJurorLevelsMiniGuideOpen , toggleJurorLevelsMiniGuide ] = useToggle ( false ) ;
40
+ const { filter } = useParams ( ) ;
41
+ const { id : searchValue } = decodeURIFilter ( filter ?? "all" ) ;
42
+
37
43
return (
38
44
< Container >
39
- < StyledLabel > Ranking</ StyledLabel >
45
+ < StyledLabel > { ! searchValue ? " Ranking" : "Jurors" } </ StyledLabel >
40
46
< HowItWorks
41
47
isMiniGuideOpen = { isJurorLevelsMiniGuideOpen }
42
48
toggleMiniGuide = { toggleJurorLevelsMiniGuide }
You can’t perform that action at this time.
0 commit comments