migrate to react-router v7 and BrowserRouter

This commit is contained in:
jeffvli
2025-10-22 19:41:17 -07:00
parent 2504c0ec10
commit bf75dec0ce
42 changed files with 81 additions and 73 deletions
@@ -3,7 +3,7 @@ import type { ICellRendererParams } from '@ag-grid-community/core';
import React from 'react';
import { generatePath } from 'react-router';
import { Link } from 'react-router-dom';
import { Link } from 'react-router';
import { CellContainer } from '/@/renderer/components/virtual-table/cells/generic-cell';
import { AppRoute } from '/@/renderer/router/routes';
@@ -3,7 +3,7 @@ import type { ICellRendererParams } from '@ag-grid-community/core';
import React from 'react';
import { generatePath } from 'react-router';
import { Link } from 'react-router-dom';
import { Link } from 'react-router';
import { CellContainer } from '/@/renderer/components/virtual-table/cells/generic-cell';
import { AppRoute } from '/@/renderer/router/routes';
@@ -2,7 +2,7 @@ import type { ICellRendererParams } from '@ag-grid-community/core';
import React, { useMemo } from 'react';
import { generatePath } from 'react-router';
import { Link } from 'react-router-dom';
import { Link } from 'react-router';
import styles from './combined-title-cell.module.css';
@@ -1,7 +1,7 @@
import type { ICellRendererParams } from '@ag-grid-community/core';
import clsx from 'clsx';
import { Link } from 'react-router-dom';
import { Link } from 'react-router';
import styles from './generic-cell.module.css';
@@ -2,7 +2,7 @@ import type { AlbumArtist, Artist } from '/@/shared/types/domain-types';
import type { ICellRendererParams } from '@ag-grid-community/core';
import React from 'react';
import { generatePath, Link } from 'react-router-dom';
import { generatePath, Link } from 'react-router';
import { CellContainer } from '/@/renderer/components/virtual-table/cells/generic-cell';
import { useGenreRoute } from '/@/renderer/hooks/use-genre-route';