Skip to content

Commit

Permalink
try to fix lint problems in web ui
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikskog authored Aug 26, 2024
1 parent 20d9758 commit 5e56cfa
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/core/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,8 @@ import './less/core.less';
import { ToastMessages } from './utils/toast/ToastMessages';
import { AuthenticationProvider } from 'authentication/providers/AuthenticationProvider';
import { SilentRenew } from 'authentication/components/SilentRenew';
import { useRouter } from 'next/router';

const Core: FC = ({ children }) => {
const router = useRouter();
useEffect(() => {
const splash = localStorage.getItem('splash');
const isLandingPage = window.location.pathname === '/';
const shouldRedirect = false;
if (shouldRedirect && isLandingPage) {
localStorage.setItem('splash', `${new Date()}`);
router.push('https://splash.online.ntnu.no');
}
}, []);

return (
<>
<Head>
Expand Down

0 comments on commit 5e56cfa

Please sign in to comment.