Skip to content

Commit

Permalink
fix TS compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabarov committed Apr 18, 2024
1 parent 5c1a445 commit 934740c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/frontend/views/login.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LoginOverlay } from '@vaadin/react-components/LoginOverlay.js';
import { useEffect, useState } from 'react';
import React, { useEffect, useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { useAuth } from 'Frontend/auth';
import { ViewConfig } from "@vaadin/hilla-file-router/types.js";
Expand All @@ -8,7 +8,11 @@ export const config: ViewConfig = {
menu: { exclude: true}
}

const NavigateAndReload = ({ to }) => {
interface NavigateAndReloadProps {
to: string;
}

const NavigateAndReload : React.FC<NavigateAndReloadProps> = ({ to }) => {
const navigate = useNavigate();

useEffect(() => {
Expand Down

0 comments on commit 934740c

Please sign in to comment.