-
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 yomo-1938
- Loading branch information
Showing
64 changed files
with
3,883 additions
and
935 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
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,47 @@ | ||
import {useTheme} from '@yoroi/theme' | ||
import React, {ReactNode} from 'react' | ||
import {StyleSheet, Text, View} from 'react-native' | ||
|
||
import {Icon} from '../Icon' | ||
import {Space} from '../Space/Space' | ||
|
||
type Props = { | ||
content: ReactNode | ||
iconSize?: number | ||
} | ||
|
||
export const Info = ({content, iconSize = 30}: Props) => { | ||
const {styles, colors} = useStyles() | ||
|
||
return ( | ||
<View style={styles.notice}> | ||
<Icon.Info size={iconSize} color={colors.blue} /> | ||
|
||
<Space height="sm" /> | ||
|
||
<Text style={styles.text}>{content}</Text> | ||
</View> | ||
) | ||
} | ||
|
||
const useStyles = () => { | ||
const {color, atoms} = useTheme() | ||
const styles = StyleSheet.create({ | ||
notice: { | ||
backgroundColor: color.sys_cyan_100, | ||
...atoms.p_md, | ||
...atoms.rounded_sm, | ||
}, | ||
text: { | ||
...atoms.body_2_md_regular, | ||
color: color.text_gray_max, | ||
}, | ||
}) | ||
|
||
const colors = { | ||
yellow: color.sys_orange_500, | ||
blue: color.primary_500, | ||
} | ||
|
||
return {colors, styles} as const | ||
} |
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
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: 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
36 changes: 36 additions & 0 deletions
36
apps/wallet-mobile/src/features/ReviewTx/ReviewTxNavigator.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,36 @@ | ||
import {createStackNavigator} from '@react-navigation/stack' | ||
import {Atoms, ThemedPalette, useTheme} from '@yoroi/theme' | ||
import React from 'react' | ||
|
||
import {Boundary} from '../../components/Boundary/Boundary' | ||
import {defaultStackNavigationOptions, ReviewTxRoutes} from '../../kernel/navigation' | ||
import {useStrings} from './common/hooks/useStrings' | ||
import {ReviewTxScreen} from './useCases/ReviewTxScreen/ReviewTxScreen' | ||
|
||
export const Stack = createStackNavigator<ReviewTxRoutes>() | ||
|
||
export const ReviewTxNavigator = () => { | ||
const {atoms, color} = useTheme() | ||
const strings = useStrings() | ||
|
||
return ( | ||
<Stack.Navigator | ||
screenOptions={{ | ||
...screenOptions(atoms, color), | ||
}} | ||
> | ||
<Stack.Screen name="review-tx" options={{title: strings.title}}> | ||
{() => ( | ||
<Boundary> | ||
<ReviewTxScreen /> | ||
</Boundary> | ||
)} | ||
</Stack.Screen> | ||
</Stack.Navigator> | ||
) | ||
} | ||
|
||
const screenOptions = (atoms: Atoms, color: ThemedPalette) => ({ | ||
...defaultStackNavigationOptions(atoms, color), | ||
gestureEnabled: true, | ||
}) |
Oops, something went wrong.