-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathMoneyFooter.tsx
More file actions
31 lines (28 loc) · 751 Bytes
/
MoneyFooter.tsx
File metadata and controls
31 lines (28 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import React from 'react';
import {
Box,
Button,
ButtonSize,
ButtonVariant,
} from '@metamask/design-system-react-native';
import { strings } from '../../../../../../locales/i18n';
import { MoneyFooterTestIds } from './MoneyFooter.testIds';
interface MoneyFooterProps {
onAddMoneyPress?: () => void;
}
const MoneyFooter = ({
onAddMoneyPress = () => undefined,
}: MoneyFooterProps) => (
<Box twClassName="px-4 py-3" testID={MoneyFooterTestIds.CONTAINER}>
<Button
variant={ButtonVariant.Primary}
size={ButtonSize.Lg}
isFullWidth
onPress={onAddMoneyPress}
testID={MoneyFooterTestIds.ADD_MONEY_BUTTON}
>
{strings('money.footer.add_money')}
</Button>
</Box>
);
export default MoneyFooter;