mirror of
https://github.com/sct/overseerr.git
synced 2025-09-27 12:39:46 +02:00
[Design/Routes] Welcome Screen / Initial Setup (#42)
* feat(new component): welcome screen and initial setup component * feat(frontend): setup with login, settings, radarr/sonarr * feat(frontend): add login functionality to login step for setup Co-authored-by: Alexander Zoitos <azoitos1@gmail.com>
This commit is contained in:
@@ -48,7 +48,11 @@ interface SyncStatus {
|
||||
libraries: Library[];
|
||||
}
|
||||
|
||||
const SettingsPlex: React.FC = () => {
|
||||
interface SettingsPlexProps {
|
||||
onComplete?: () => void;
|
||||
}
|
||||
|
||||
const SettingsPlex: React.FC<SettingsPlexProps> = ({ onComplete }) => {
|
||||
const intl = useIntl();
|
||||
const { data, error, revalidate } = useSWR<PlexSettings>(
|
||||
'/api/v1/settings/plex'
|
||||
@@ -78,6 +82,9 @@ const SettingsPlex: React.FC = () => {
|
||||
} as PlexSettings);
|
||||
|
||||
revalidate();
|
||||
if (onComplete) {
|
||||
onComplete();
|
||||
}
|
||||
} catch (e) {
|
||||
setSubmitError(e.response.data.message);
|
||||
} finally {
|
||||
|
Reference in New Issue
Block a user