From d5a754ba73ab6a341ad6b6d90a858112ebaf17bd Mon Sep 17 00:00:00 2001 From: Malaber Date: Sun, 16 Mar 2025 16:31:26 +0100 Subject: [PATCH] Fix navbar not sticky --- js/components/Navigation.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/js/components/Navigation.js b/js/components/Navigation.js index ec697df..e8f6c5a 100644 --- a/js/components/Navigation.js +++ b/js/components/Navigation.js @@ -10,22 +10,16 @@ import {notify} from 'react-notify-toast'; export class TurniereNavigation extends React.Component { constructor(props) { super(props); - this.toggle = this.toggle.bind(this); - - this.state = { - collapsed: true - }; + this.state = {collapsed: true}; } toggle() { - this.setState({ - collapsed: !this.state.collapsed - }); + this.setState({collapsed: !this.state.collapsed}); } render() { - return ( + return ( turnie.re