mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-05 06:08:36 -05:00
chore(deps): update react to 18 (#2943)
This commit is contained in:
@@ -15,14 +15,17 @@ export interface SettingsRoute {
|
||||
hidden?: boolean;
|
||||
}
|
||||
|
||||
const SettingsLink: React.FC<{
|
||||
type SettingsLinkProps = {
|
||||
tabType: 'default' | 'button';
|
||||
currentPath: string;
|
||||
route: string;
|
||||
regex: RegExp;
|
||||
hidden?: boolean;
|
||||
isMobile?: boolean;
|
||||
}> = ({
|
||||
children: React.ReactNode;
|
||||
};
|
||||
|
||||
const SettingsLink = ({
|
||||
children,
|
||||
tabType,
|
||||
currentPath,
|
||||
@@ -30,7 +33,7 @@ const SettingsLink: React.FC<{
|
||||
regex,
|
||||
hidden = false,
|
||||
isMobile = false,
|
||||
}) => {
|
||||
}: SettingsLinkProps) => {
|
||||
if (hidden) {
|
||||
return null;
|
||||
}
|
||||
@@ -66,10 +69,13 @@ const SettingsLink: React.FC<{
|
||||
);
|
||||
};
|
||||
|
||||
const SettingsTabs: React.FC<{
|
||||
const SettingsTabs = ({
|
||||
tabType = 'default',
|
||||
settingsRoutes,
|
||||
}: {
|
||||
tabType?: 'default' | 'button';
|
||||
settingsRoutes: SettingsRoute[];
|
||||
}> = ({ tabType = 'default', settingsRoutes }) => {
|
||||
}) => {
|
||||
const router = useRouter();
|
||||
const { user: currentUser } = useUser();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user