1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Migrate quick connect page to react

This commit is contained in:
Bill Thornton 2023-09-15 10:31:48 -04:00
parent 9435e3172d
commit d24b030962
15 changed files with 179 additions and 88 deletions

View file

@ -0,0 +1,17 @@
import React from 'react';
import { Navigate, Route } from 'react-router-dom';
export interface Redirect {
from: string
to: string
}
export function toRedirectRoute({ from, to }: Redirect) {
return (
<Route
key={from}
path={from}
element={<Navigate replace to={to} />}
/>
);
}