@@ -8,7 +8,7 @@ import Text from '../component/text';
88import { BackButton , ShareButton , Button } from '../component/button' ;
99import { createStyles , maxWidth } from '../component/media-query' ;
1010import { color , font , breakWidth } from '../component/style' ;
11- import { shareLogs , error } from '../action/log' ;
11+ import { shareLogs } from '../action/log' ;
1212
1313//
1414// CLI View
@@ -20,33 +20,20 @@ const styles = StyleSheet.create({
2020 } ,
2121} ) ;
2222
23- class CLIView extends Component {
24- render ( ) {
25- const { store, nav } = this . props ;
26- return (
27- < SplitBackground color = { color . blackDark } bottom = { color . cliBackground } >
28- < Header separator style = { styles . header } >
29- < BackButton onPress = { ( ) => nav . goSettings ( ) } />
30- < Title title = "Logs" />
31- { Platform . OS === 'web' ? (
32- < Button onPress = { ( ) => { } } />
33- ) : (
34- < ShareButton onPress = { ( ) => this . shareLogs ( ) } />
35- ) }
36- </ Header >
37- < LogOutput logs = { store . logs } />
38- </ SplitBackground >
39- ) ;
40- }
41-
42- async shareLogs ( ) {
43- try {
44- await shareLogs ( ) ;
45- } catch ( err ) {
46- error ( err ) ;
47- }
48- }
49- }
23+ const CLIView = ( { store, nav } ) => (
24+ < SplitBackground color = { color . blackDark } bottom = { color . cliBackground } >
25+ < Header separator style = { styles . header } >
26+ < BackButton onPress = { ( ) => nav . goSettings ( ) } />
27+ < Title title = "Logs" />
28+ { Platform . OS === 'web' ? (
29+ < Button onPress = { ( ) => { } } />
30+ ) : (
31+ < ShareButton onPress = { ( ) => shareLogs ( ) } />
32+ ) }
33+ </ Header >
34+ < LogOutput logs = { store . logs } />
35+ </ SplitBackground >
36+ ) ;
5037
5138CLIView . propTypes = {
5239 store : PropTypes . object . isRequired ,
0 commit comments