-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ DRY the shared tab titles/definitions
- Loading branch information
1 parent
803fab1
commit 7d06a88
Showing
4 changed files
with
75 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import {FormattedMessage} from 'react-intl'; | ||
|
||
import {Tab} from '@/components/formio'; | ||
|
||
export interface TabProps { | ||
hasErrors: boolean; | ||
} | ||
|
||
export const Basic: React.FC<TabProps> = props => ( | ||
<Tab {...props}> | ||
<FormattedMessage | ||
description="Component edit form tab title for 'Basic' tab" | ||
defaultMessage="Basic" | ||
/> | ||
</Tab> | ||
); | ||
|
||
export const Advanced: React.FC<TabProps> = props => ( | ||
<Tab {...props}> | ||
<FormattedMessage | ||
description="Component edit form tab title for 'Advanced' tab" | ||
defaultMessage="Advanced" | ||
/> | ||
</Tab> | ||
); | ||
export const Validation: React.FC<TabProps> = props => ( | ||
<Tab {...props}> | ||
<FormattedMessage | ||
description="Component edit form tab title for 'Validation' tab" | ||
defaultMessage="Validation" | ||
/> | ||
</Tab> | ||
); | ||
export const Registration: React.FC<TabProps> = props => ( | ||
<Tab {...props}> | ||
<FormattedMessage | ||
description="Component edit form tab title for 'Registration' tab" | ||
defaultMessage="Registration" | ||
/> | ||
</Tab> | ||
); | ||
export const Prefill: React.FC<TabProps> = props => ( | ||
<Tab {...props}> | ||
<FormattedMessage | ||
description="Component edit form tab title for 'Prefill' tab" | ||
defaultMessage="Prefill" | ||
/> | ||
</Tab> | ||
); | ||
export const Translations: React.FC<TabProps> = props => ( | ||
<Tab {...props}> | ||
<FormattedMessage | ||
description="Component edit form tab title for 'Translations' tab" | ||
defaultMessage="Translations" | ||
/> | ||
</Tab> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters