-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update standalone component hierarchy
- Loading branch information
Showing
6 changed files
with
29 additions
and
29 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
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
16 changes: 0 additions & 16 deletions
16
...nents/Views/confirmations/components/Confirm/Info/StakingDeposit/StakingDeposit.styles.ts
This file was deleted.
Oops, something went wrong.
14 changes: 3 additions & 11 deletions
14
app/components/Views/confirmations/components/Confirm/Info/StakingDeposit/StakingDeposit.tsx
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 |
---|---|---|
@@ -1,32 +1,24 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useNavigation } from '@react-navigation/native'; | ||
import { ScrollView, View } from 'react-native'; | ||
|
||
import { strings } from '../../../../../../../../locales/i18n'; | ||
import { useStyles } from '../../../../../../../component-library/hooks'; | ||
import { useConfirmActions } from '../../../../hooks/useConfirmActions'; | ||
import Footer from '../../Footer'; | ||
import TokenHero from '../../TokenHero'; | ||
import { getStakingDepositNavbar } from './Navbar'; | ||
import styleSheet from './StakingDeposit.styles'; | ||
|
||
const StakingDeposit = () => { | ||
const navigation = useNavigation(); | ||
const { onReject } = useConfirmActions(); | ||
const title = strings('stake.stake'); | ||
const { styles } = useStyles(styleSheet, {}); | ||
|
||
useEffect(() => { | ||
navigation.setOptions(getStakingDepositNavbar({ title, onReject })); | ||
}, [navigation, onReject, title]); | ||
|
||
return ( | ||
<View style={styles.container}> | ||
<ScrollView> | ||
<TokenHero /> | ||
</ScrollView> | ||
<Footer /> | ||
</View> | ||
<> | ||
<TokenHero /> | ||
</> | ||
); | ||
}; | ||
export default StakingDeposit; |
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