-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSeniorDash.tsx
85 lines (83 loc) · 1.82 KB
/
SeniorDash.tsx
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import React from 'react';
import {StyleSheet, Text, View, TouchableOpacity} from 'react-native';
import Feed from './Feed'
export default function SeniorDash({navigation, route}) {
console.log('navigation', navigation)
console.log('route', route)
return (
<View style={styles.container}>
<TouchableOpacity
style={styles.submit}
onPress={() => navigation.navigate('NewTicket')}
>
<Text style={styles.submitText}>New Ticket</Text>
</TouchableOpacity>
<View
style={styles.buttonView}
>
<TouchableOpacity
style={styles.tabOpen}
>
<Text style={styles.tabsText}>Open</Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.tabClosed}
>
<Text
style={styles.tabsText}
>Closed</Text>
</TouchableOpacity>
</View>
<Feed/>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
},
submit: {
width: '82%',
backgroundColor: 'lightgreen',
borderStyle: 'solid',
padding: 10,
borderRadius: 10,
borderWidth: 5,
borderColor: 'black',
display: 'flex',
alignItems: 'center',
},
submitText: {
fontSize: 30,
},
buttonView: {
flexDirection: 'row',
justifyContent: 'space-around',
},
tabOpen: {
margin: 5,
width: '40%',
backgroundColor: 'dodgerblue',
borderStyle: 'solid',
padding: 10,
borderRadius: 10,
borderWidth: 5,
borderColor: 'black',
alignItems: 'center'
},
tabClosed: {
margin: 5,
width: '40%',
backgroundColor: 'tomato',
borderStyle: 'solid',
padding: 10,
borderRadius: 10,
borderWidth: 5,
borderColor: 'black',
alignItems: 'center'
},
tabsText: {
fontSize: 25
},
})