0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-24 22:05:56 -05:00

fix(console): last button in guide should be primary type

This commit is contained in:
Charles Zhao 2022-06-29 10:47:02 +08:00
parent e870cb057c
commit 2036570714
No known key found for this signature in database
GPG key ID: 4858774754C92DF2
9 changed files with 13 additions and 1 deletions

View file

@ -271,6 +271,7 @@ Notes:
index={4}
activeIndex={props.activeStepIndex}
buttonText="admin_console.general.done"
buttonType="primary"
onButtonClick={props.onComplete}
>

View file

@ -271,6 +271,7 @@ logtoClient.signOut(logtoException -> {
index={4}
activeIndex={props.activeStepIndex}
buttonText="admin_console.general.done"
buttonType="primary"
onButtonClick={props.onComplete}
>

View file

@ -105,6 +105,7 @@ await client.signOut()
index={4}
activeIndex={props.activeStepIndex}
buttonText="admin_console.general.done"
buttonType="primary"
onButtonClick={props.onComplete}
>

View file

@ -184,6 +184,7 @@ export default SignOutButton;
index={4}
activeIndex={props.activeStepIndex}
buttonText="admin_console.general.done"
buttonType="primary"
onButtonClick={props.onComplete}
>

View file

@ -183,6 +183,8 @@ export default SignOutButton;
subtitle="3 steps"
index={4}
activeIndex={props.activeStepIndex}
buttonText="admin_console.general.done"
buttonType="primary"
onButtonClick={props.onComplete}
>

View file

@ -179,6 +179,7 @@ const onClickSignOut = () => signOut('http://localhost:1234');
index={4}
activeIndex={props.activeStepIndex}
buttonText="admin_console.general.done"
buttonType="primary"
onButtonClick={props.onComplete}
>

View file

@ -152,6 +152,8 @@ const { isAuthenticated } = useLogto();
subtitle="1 step"
index={3}
activeIndex={props.activeStepIndex}
buttonText="admin_console.general.done"
buttonType="primary"
onButtonClick={() => props.onNext(4)}
>

View file

@ -20,6 +20,7 @@ type Props = PropsWithChildren<{
activeIndex: number;
buttonText?: I18nKey;
buttonHtmlType?: 'submit' | 'button';
buttonType?: 'primary' | 'outline';
isLoading?: boolean;
onButtonClick?: () => void;
}>;
@ -32,6 +33,7 @@ const Step = ({
activeIndex,
buttonText = 'admin_console.general.next',
buttonHtmlType = 'button',
buttonType = 'outline',
isLoading,
onButtonClick,
}: Props) => {
@ -78,7 +80,7 @@ const Step = ({
{children}
<div className={styles.buttonWrapper}>
<Button
type="outline"
type={buttonType}
size="large"
isLoading={isLoading}
htmlType={buttonHtmlType}

View file

@ -102,6 +102,7 @@ const Guide = ({ connector, onClose }: Props) => {
activeIndex={0}
buttonText="admin_console.connectors.save_and_done"
buttonHtmlType="submit"
buttonType="primary"
isLoading={isSubmitting}
>
<Controller