-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Desktop view + writing issues and screens to start (#9)
* lint fix * fix link + start ui desktop * add desktop view + sidebar + start empty screen
- Loading branch information
Showing
11 changed files
with
364 additions
and
25 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
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,43 @@ | ||
import { useState } from 'react'; | ||
import { KeyboardAvoidingView, View, Text } from 'react-native'; | ||
import { SafeAreaView } from 'react-native-safe-area-context'; | ||
import { TextButton } from '../../components'; | ||
import TabSelector from '../../components/TabSelector'; | ||
import { useStyles } from '../../hooks'; | ||
import { DefiScreenProps } from '../../types'; | ||
import { SelectedTab, TABS_FORM_CREATE } from '../../types/tab'; | ||
import stylesheet from './styles'; | ||
|
||
export const Defi: React.FC<DefiScreenProps> = ({ navigation }) => { | ||
const styles = useStyles(stylesheet); | ||
const [selectedTab, setSelectedTab] = useState<SelectedTab | undefined>(SelectedTab.CREATE_NOTE); | ||
|
||
const handleTabSelected = (tab: string | SelectedTab, screen?: string) => { | ||
setSelectedTab(tab as any); | ||
if (screen) { | ||
navigation.navigate(screen as any); | ||
} | ||
}; | ||
|
||
return ( | ||
<View style={styles.container}> | ||
<SafeAreaView edges={['top', 'left', 'right']} style={styles.header}> | ||
<TextButton style={styles.cancelButton} onPress={navigation.goBack}> | ||
Cancel | ||
</TextButton> | ||
</SafeAreaView> | ||
|
||
<KeyboardAvoidingView behavior="padding" style={styles.content}> | ||
{/* <TabSelector | ||
activeTab={selectedTab} | ||
handleActiveTab={handleTabSelected} | ||
buttons={TABS_FORM_CREATE} | ||
addScreenNavigation={false} | ||
></TabSelector> */} | ||
<SafeAreaView edges={['bottom', 'left', 'right']} style={styles.content}> | ||
<Text>Coming soon</Text> | ||
</SafeAreaView> | ||
</KeyboardAvoidingView> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import {StyleSheet} from 'react-native'; | ||
|
||
import {Spacing, ThemedStyleSheet, Typography} from '../../styles'; | ||
|
||
export default ThemedStyleSheet((theme) => ({ | ||
container: { | ||
flex: 1, | ||
}, | ||
|
||
header: { | ||
flexDirection: 'row', | ||
justifyContent: 'space-between', | ||
backgroundColor: theme.colors.surface, | ||
paddingHorizontal: Spacing.pagePadding, | ||
borderBottomWidth: StyleSheet.hairlineWidth, | ||
borderBottomColor: theme.colors.divider, | ||
}, | ||
cancelButton: { | ||
paddingVertical: Spacing.small, | ||
paddingHorizontal: Spacing.xsmall, | ||
}, | ||
|
||
content: { | ||
flex: 1, | ||
backgroundColor: theme.colors.background, | ||
}, | ||
form: { | ||
flex: 1, | ||
}, | ||
input: { | ||
flex: 1, | ||
padding: Spacing.large, | ||
color: theme.colors.inputText, | ||
textAlignVertical: 'top', | ||
fontSize: 16, | ||
lineHeight: 24, | ||
...Typography.medium, | ||
}, | ||
imageContainer: { | ||
padding: Spacing.pagePadding, | ||
}, | ||
image: { | ||
width: '100%', | ||
resizeMode: 'cover', | ||
borderRadius: 8, | ||
overflow: 'hidden', | ||
}, | ||
|
||
buttons: { | ||
position: 'relative', | ||
}, | ||
mediaButtons: { | ||
flexDirection: 'row', | ||
paddingHorizontal: Spacing.pagePadding, | ||
paddingVertical: Spacing.small, | ||
gap: Spacing.large, | ||
alignItems: 'center', | ||
}, | ||
sendButton: { | ||
position: 'absolute', | ||
right: Spacing.pagePadding, | ||
bottom: '110%', | ||
}, | ||
})); |
Oops, something went wrong.