-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into notifications
- Loading branch information
Showing
46 changed files
with
2,046 additions
and
1,705 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
26 changes: 26 additions & 0 deletions
26
apps/wallet-mobile/src/components/SimpleTab/SimpleTab.stories.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import {action} from '@storybook/addon-actions' | ||
import {storiesOf} from '@storybook/react-native' | ||
import * as React from 'react' | ||
import {View} from 'react-native' | ||
|
||
import {SimpleTab} from './SimpleTab' | ||
|
||
storiesOf('SimpleTab', module) | ||
.add('Active', () => <Active />) | ||
.add('Inactive', () => <Inactive />) | ||
|
||
const Active = () => { | ||
return ( | ||
<View style={{flexDirection: 'row'}}> | ||
<SimpleTab name="Active" isActive={true} onPress={action('onPress')} /> | ||
</View> | ||
) | ||
} | ||
|
||
const Inactive = () => { | ||
return ( | ||
<View style={{flexDirection: 'row'}}> | ||
<SimpleTab name="Inactive" isActive={false} onPress={action('onPress')} /> | ||
</View> | ||
) | ||
} |
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
26 changes: 0 additions & 26 deletions
26
.../Discover/useCases/SelectDappFromList/DAppExplorerTabItem/DAppExplorerTabItem.stories.tsx
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
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
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
73 changes: 0 additions & 73 deletions
73
apps/wallet-mobile/src/features/ReviewTx/common/Address.tsx
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
apps/wallet-mobile/src/features/ReviewTx/common/CopiableText.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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import {useTheme} from '@yoroi/theme' | ||
import * as React from 'react' | ||
import {StyleSheet, TouchableOpacity, View} from 'react-native' | ||
|
||
import {Icon} from '../../../components/Icon' | ||
import {useCopy} from '../../../hooks/useCopy' | ||
|
||
export const CopiableText = ({children, textToCopy}: {children: React.ReactNode; textToCopy: string}) => { | ||
const {styles, colors} = useStyles() | ||
const [, copy] = useCopy() | ||
|
||
return ( | ||
<View style={styles.text}> | ||
{children} | ||
|
||
<TouchableOpacity onPress={() => copy(textToCopy)} activeOpacity={0.5}> | ||
<Icon.Copy size={24} color={colors.copy} /> | ||
</TouchableOpacity> | ||
</View> | ||
) | ||
} | ||
|
||
const useStyles = () => { | ||
const {atoms, color} = useTheme() | ||
const styles = StyleSheet.create({ | ||
text: { | ||
...atoms.flex_row, | ||
...atoms.justify_between, | ||
}, | ||
}) | ||
|
||
const colors = { | ||
copy: color.gray_900, | ||
} | ||
|
||
return {styles, colors} as const | ||
} |
Oops, something went wrong.