Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tomi Virtanen <[email protected]>
  • Loading branch information
mshabarov and tltv authored Apr 12, 2024
1 parent 4381d3b commit 7c455e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/frontend/routes.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Flow from 'Frontend/generated/flow/Flow';
import fileRoutes from 'Frontend/generated/file-routes';
import Login from "Frontend/views/login";
import {RouterConfigurationBuilder} from "@vaadin/hilla-file-router/runtime.js";
import { RouterConfigurationBuilder } from "@vaadin/hilla-file-router/runtime.js";

export const { routes, router} = new RouterConfigurationBuilder()
export const { routes, router } = new RouterConfigurationBuilder()
.withFileRoutes(fileRoutes)
.withReactRoutes(
{ path: '/login', element: <Login />, handle: { title: 'Login' } }
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/views/about.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { VerticalLayout } from "@vaadin/react-components/VerticalLayout.js";
import type {ViewConfig} from "@vaadin/hilla-file-router/types.js";
import type { ViewConfig } from "@vaadin/hilla-file-router/types.js";

export const config: ViewConfig = {
loginRequired: true
Expand Down
4 changes: 2 additions & 2 deletions src/main/frontend/views/hilla.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Button } from "@vaadin/react-components/Button.js";
import { TextField } from "@vaadin/react-components/TextField.js";
import { HelloEndpoint } from "Frontend/generated/endpoints";
import { useState } from "react";
import {VerticalLayout} from "@vaadin/react-components/VerticalLayout.js";
import type {ViewConfig} from "@vaadin/hilla-file-router/types.js";
import { VerticalLayout } from "@vaadin/react-components/VerticalLayout.js";
import type { ViewConfig } from "@vaadin/hilla-file-router/types.js";

export const config: ViewConfig = {
loginRequired: true,
Expand Down

0 comments on commit 7c455e7

Please sign in to comment.