Skip to content

Commit

Permalink
react-router-dom to react-router
Browse files Browse the repository at this point in the history
  • Loading branch information
ZheSun88 committed Dec 10, 2024
1 parent 151a9a3 commit ffc6e75
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import { createElement } from 'react';
import { createRoot } from 'react-dom/client';
import { RouterProvider } from 'react-router-dom';
import { RouterProvider } from 'react-router';
import { router } from 'Frontend/generated/routes';
import { AuthProvider } from './auth';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Button, VerticalLayout} from "@vaadin/react-components";
import type { ViewConfig } from "@vaadin/hilla-file-router/types.js";
import {useNavigate} from "react-router-dom";
import {useNavigate} from "react-router";

export const config: ViewConfig = {
menu: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {ViewConfig} from "@vaadin/hilla-file-router/types.js";
import { NavLink } from "react-router-dom";
import { NavLink } from "react-router";

export const config: ViewConfig = {
menu: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
SideNav,
SideNavItem
} from "@vaadin/react-components";
import { Outlet, useLocation, useNavigate } from 'react-router-dom';
import { Outlet, useLocation, useNavigate } from 'react-router';
import { createMenuItems, useViewConfig } from '@vaadin/hilla-file-router/runtime.js';
import { effect, Signal, signal } from "@vaadin/hilla-react-signals";
import { useAuth } from "../../auth";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LoginOverlay } from '@vaadin/react-components';
import React, { useEffect, useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { useNavigate } from 'react-router';
import { useAuth } from 'Frontend/auth';
import { ViewConfig } from "@vaadin/hilla-file-router/types.js";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Button, VerticalLayout} from "@vaadin/react-components";
import type { ViewConfig } from "@vaadin/hilla-file-router/types.js";
import {useNavigate} from "react-router-dom";
import {useNavigate} from "react-router";

export const config: ViewConfig = {
menu: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {ViewConfig} from "@vaadin/hilla-file-router/types.js";
import { NavLink } from "react-router-dom";
import { NavLink } from "react-router";

export const config: ViewConfig = {
menu: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
SideNav,
SideNavItem
} from "@vaadin/react-components";
import { Outlet, useLocation, useNavigate } from 'react-router-dom';
import { Outlet, useLocation, useNavigate } from 'react-router';
import { createMenuItems, useViewConfig } from '@vaadin/hilla-file-router/runtime.js';
import { effect, Signal, signal } from "@vaadin/hilla-react-signals";

Expand Down

0 comments on commit ffc6e75

Please sign in to comment.