[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:
Jeff Bentley
2020-11-12 11:03:10 +09:00
committed by GitHub
parent 06dc606bcf
commit 366074c12a
6 changed files with 249 additions and 2 deletions

View File

@@ -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 {