first commit

This commit is contained in:
ryanwong
2022-11-26 01:23:44 -05:00
commit 02843b95c9
2776 changed files with 102795 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
/* eslint-disable */
import { Redirect, Route } from 'react-router-dom';
import React from 'react';
export const RedirectRoute = ({ children, redirect = '/login', ...rest }) => {
return (
<Route
{...rest}
render={({ location }) => (
<Redirect
to={{
pathname: redirect,
state: { from: location },
}}
/>
)}
/>
);
};