Skip to content

Commit a38411d

Browse files
committed
Revert "Add in footer type switching based on url parameter"
This reverts commit c3fd3a4.
1 parent f06b06e commit a38411d

File tree

1 file changed

+1
-12
lines changed
  • src/shared/components/TopcoderFooter

1 file changed

+1
-12
lines changed

src/shared/components/TopcoderFooter/index.jsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export default function TopcoderFooter() {
88
const footerRef = useRef();
99
const footerInitialized = useRef(false);
1010
const [footerId, setFooterId] = useState(0);
11-
const urlParams = new URLSearchParams(window.location.href);
1211

1312
useEffect(() => {
1413
uniqueId += 1;
@@ -21,20 +20,10 @@ export default function TopcoderFooter() {
2120
}
2221

2322
footerInitialized.current = true;
24-
let { fullFooter } = getSubPageConfiguration();
25-
26-
// If url contains navTool url parameter. Overwrite settings with parameter.
27-
if (urlParams.get('navTool')) {
28-
if (urlParams.get('navTool') === 'tool') {
29-
fullFooter = false;
30-
} else {
31-
fullFooter = true;
32-
}
33-
}
3423

3524
tcUniNav('init', `footerNav-${footerId}`, {
3625
type: 'footer',
37-
fullFooter,
26+
fullFooter: getSubPageConfiguration().fullFooter,
3827
});
3928
}, [footerId]);
4029

0 commit comments

Comments
 (0)