Skip to content

Commit 619ead0

Browse files
committed
Move InnerStepCounter to separate module
1 parent 214d79a commit 619ead0

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

packages/localizations/src/en-US.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,6 @@ export const enUS: LocalizationResource = {
433433
},
434434
identityProviderMetadataStep: {
435435
headerSubtitle: 'Configure identity provider metadata',
436-
label: '',
437-
placeholder: '',
438-
description: '',
439436
modes: {
440437
title: 'Fill in your Okta SAML application details',
441438
ariaLabel: 'Configuration ',
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Step } from '../Step';
2+
import { useWizard } from './index';
3+
4+
export const InnerStepCounter = (): JSX.Element => {
5+
const { currentIndex, totalSteps } = useWizard();
6+
return (
7+
<Step.Counter
8+
total={totalSteps}
9+
current={currentIndex + 1}
10+
/>
11+
);
12+
};

packages/ui/src/components/ConfigureSSO/steps/VerifyDomainStep.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { handleError } from '@/utils/errorHandler';
2222
import { useConfigureSSO } from '../ConfigureSSOContext';
2323
import { Step } from '../elements/Step';
2424
import { useWizard, Wizard } from '../elements/Wizard';
25+
import { InnerStepCounter } from '../elements/Wizard/InnerStepCounter';
2526

2627
export const VerifyDomainStep = (): JSX.Element => {
2728
const { user } = useUser();
@@ -157,16 +158,6 @@ export const VerifyDomainStep = (): JSX.Element => {
157158
);
158159
};
159160

160-
const InnerStepCounter = (): JSX.Element => {
161-
const { currentIndex, totalSteps } = useWizard();
162-
return (
163-
<Step.Counter
164-
total={totalSteps}
165-
current={currentIndex + 1}
166-
/>
167-
);
168-
};
169-
170161
const isEmail = (str: string) => /^\S+@\S+\.\S+$/.test(str);
171162

172163
type ProvideEmailStepProps = {

0 commit comments

Comments
 (0)