mirror of
https://github.com/logto-io/logto.git
synced 2025-02-24 22:05:56 -05:00
Merge pull request #1288 from logto-io/charles-log-3185-log-3186-guide-last-step-should-be-primary
fix(console): last button in guide should be primary
This commit is contained in:
commit
0cfe3873ea
9 changed files with 13 additions and 1 deletions
|
@ -271,6 +271,7 @@ Notes:
|
|||
index={4}
|
||||
activeIndex={props.activeStepIndex}
|
||||
buttonText="admin_console.general.done"
|
||||
buttonType="primary"
|
||||
onButtonClick={props.onComplete}
|
||||
>
|
||||
|
||||
|
|
|
@ -271,6 +271,7 @@ logtoClient.signOut(logtoException -> {
|
|||
index={4}
|
||||
activeIndex={props.activeStepIndex}
|
||||
buttonText="admin_console.general.done"
|
||||
buttonType="primary"
|
||||
onButtonClick={props.onComplete}
|
||||
>
|
||||
|
||||
|
|
|
@ -105,6 +105,7 @@ await client.signOut()
|
|||
index={4}
|
||||
activeIndex={props.activeStepIndex}
|
||||
buttonText="admin_console.general.done"
|
||||
buttonType="primary"
|
||||
onButtonClick={props.onComplete}
|
||||
>
|
||||
|
||||
|
|
|
@ -184,6 +184,7 @@ export default SignOutButton;
|
|||
index={4}
|
||||
activeIndex={props.activeStepIndex}
|
||||
buttonText="admin_console.general.done"
|
||||
buttonType="primary"
|
||||
onButtonClick={props.onComplete}
|
||||
>
|
||||
|
||||
|
|
|
@ -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}
|
||||
>
|
||||
|
||||
|
|
|
@ -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}
|
||||
>
|
||||
|
||||
|
|
|
@ -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)}
|
||||
>
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue