🔥 Remove onboarding step
This commit is contained in:
@@ -2,7 +2,6 @@ import { Stack, Stepper } from '@mantine/core';
|
|||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
|
||||||
import { StepCreateAccount } from './step-create-account';
|
import { StepCreateAccount } from './step-create-account';
|
||||||
import { StepDocumentation } from './step-documentation';
|
|
||||||
import { StepOnboardingFinished } from './step-onboarding-finished';
|
import { StepOnboardingFinished } from './step-onboarding-finished';
|
||||||
import { StepUpdatePathMappings } from './step-update-path-mappings';
|
import { StepUpdatePathMappings } from './step-update-path-mappings';
|
||||||
|
|
||||||
@@ -30,9 +29,6 @@ export const OnboardingSteps = ({ isUpdate }: { isUpdate: boolean }) => {
|
|||||||
<Stepper.Step label="Your account" description="Create an account">
|
<Stepper.Step label="Your account" description="Create an account">
|
||||||
<StepCreateAccount next={nextStep} previous={prevStep} />
|
<StepCreateAccount next={nextStep} previous={prevStep} />
|
||||||
</Stepper.Step>
|
</Stepper.Step>
|
||||||
<Stepper.Step label="Documentation" description="Introduction into Homarr">
|
|
||||||
<StepDocumentation next={nextStep} />
|
|
||||||
</Stepper.Step>
|
|
||||||
<Stepper.Completed>
|
<Stepper.Completed>
|
||||||
<StepOnboardingFinished />
|
<StepOnboardingFinished />
|
||||||
</Stepper.Completed>
|
</Stepper.Completed>
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
import { Button, Divider, Stack, Text, Title } from '@mantine/core';
|
|
||||||
import { IconArrowRight, IconExternalLink } from '@tabler/icons-react';
|
|
||||||
|
|
||||||
import { OnboardingStepWrapper } from './common-wrapper';
|
|
||||||
|
|
||||||
export const StepDocumentation = ({ next }: { next: () => void }) => {
|
|
||||||
return (
|
|
||||||
<OnboardingStepWrapper>
|
|
||||||
<Title order={2} align="center" mb="lg">
|
|
||||||
Documentation
|
|
||||||
</Title>
|
|
||||||
|
|
||||||
<Stack align="center">
|
|
||||||
<Text>We highly encourage you to read the documentation, before you continue.</Text>
|
|
||||||
<Button
|
|
||||||
component="a"
|
|
||||||
href="https://homarr.dev/docs/introduction/after-the-installation"
|
|
||||||
target="_blank"
|
|
||||||
rightIcon={<IconExternalLink size="1rem" />}
|
|
||||||
variant="default"
|
|
||||||
>
|
|
||||||
Open documentation
|
|
||||||
</Button>
|
|
||||||
<Divider h={30} />
|
|
||||||
<Button onClick={next} rightIcon={<IconArrowRight size="1rem" />} fullWidth>
|
|
||||||
Finish
|
|
||||||
</Button>
|
|
||||||
</Stack>
|
|
||||||
</OnboardingStepWrapper>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
import { NavLink, Stack, Text, Title, createStyles } from '@mantine/core';
|
import { Divider, NavLink, Stack, Text, Title, createStyles } from '@mantine/core';
|
||||||
import {
|
import {
|
||||||
IconChevronRight,
|
IconChevronRight,
|
||||||
IconDashboard,
|
IconDashboard,
|
||||||
|
IconExternalLink,
|
||||||
IconFileText,
|
IconFileText,
|
||||||
IconManualGearbox,
|
IconManualGearbox,
|
||||||
} from '@tabler/icons-react';
|
} from '@tabler/icons-react';
|
||||||
@@ -22,6 +23,22 @@ export const StepOnboardingFinished = () => {
|
|||||||
<Text>Awesome! What do you want to do next?</Text>
|
<Text>Awesome! What do you want to do next?</Text>
|
||||||
|
|
||||||
<Stack>
|
<Stack>
|
||||||
|
<Text>
|
||||||
|
We <b>highly recommend you</b> to take a look at the documentation before starting to
|
||||||
|
use Homarr if you've never used it before.
|
||||||
|
</Text>
|
||||||
|
<NavLink
|
||||||
|
component={Link}
|
||||||
|
href="https://homarr.dev/docs/introduction/after-the-installation"
|
||||||
|
target="_blank"
|
||||||
|
rightSection={<IconExternalLink size="0.8rem" stroke={1.5} />}
|
||||||
|
className={classes.link}
|
||||||
|
icon={<IconFileText />}
|
||||||
|
label="Check out the documentation"
|
||||||
|
variant="light"
|
||||||
|
active
|
||||||
|
/>
|
||||||
|
<Divider />
|
||||||
<NavLink
|
<NavLink
|
||||||
component={Link}
|
component={Link}
|
||||||
href="/b/default"
|
href="/b/default"
|
||||||
@@ -42,17 +59,6 @@ export const StepOnboardingFinished = () => {
|
|||||||
variant="light"
|
variant="light"
|
||||||
active
|
active
|
||||||
/>
|
/>
|
||||||
<NavLink
|
|
||||||
component='a'
|
|
||||||
href="https://homarr.dev"
|
|
||||||
target="_blank"
|
|
||||||
rightSection={<IconChevronRight size="0.8rem" stroke={1.5} />}
|
|
||||||
className={classes.link}
|
|
||||||
icon={<IconFileText />}
|
|
||||||
label="Check out the documentation"
|
|
||||||
variant="light"
|
|
||||||
active
|
|
||||||
/>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
</OnboardingStepWrapper>
|
</OnboardingStepWrapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user