-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34963 from ruben-rebelo/ts-migration/WorkspaceCard
[TS Migration] Migrate WorkspaceCard to Typescript
- Loading branch information
Showing
6 changed files
with
89 additions
and
130 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 was deleted.
Oops, something went wrong.
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,42 @@ | ||
import React from 'react'; | ||
import {View} from 'react-native'; | ||
import ConnectBankAccountButton from '@components/ConnectBankAccountButton'; | ||
import * as Illustrations from '@components/Icon/Illustrations'; | ||
import Section from '@components/Section'; | ||
import Text from '@components/Text'; | ||
import UnorderedList from '@components/UnorderedList'; | ||
import useLocalize from '@hooks/useLocalize'; | ||
import useThemeStyles from '@hooks/useThemeStyles'; | ||
|
||
type WorkspaceCardNoVBAViewProps = { | ||
/** The policy ID currently being configured */ | ||
policyID: string; | ||
}; | ||
|
||
function WorkspaceCardNoVBAView({policyID}: WorkspaceCardNoVBAViewProps) { | ||
const styles = useThemeStyles(); | ||
const {translate} = useLocalize(); | ||
const unorderedListItems = [translate('workspace.card.benefit1'), translate('workspace.card.benefit2'), translate('workspace.card.benefit3'), translate('workspace.card.benefit4')]; | ||
|
||
return ( | ||
<Section | ||
title={translate('workspace.card.header')} | ||
icon={Illustrations.CreditCardsNew} | ||
isCentralPane | ||
> | ||
<View style={[styles.mv4]}> | ||
<Text>{translate('workspace.card.noVBACopy')}</Text> | ||
</View> | ||
|
||
<UnorderedList items={unorderedListItems} /> | ||
<ConnectBankAccountButton | ||
policyID={policyID} | ||
style={[styles.mt6]} | ||
/> | ||
</Section> | ||
); | ||
} | ||
|
||
WorkspaceCardNoVBAView.displayName = 'WorkspaceCardNoVBAView'; | ||
|
||
export default WorkspaceCardNoVBAView; |
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
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