11// @flow
22import * as React from 'react'
3- import { ScrollView , View , Text , StyleSheet } from 'react-native'
3+ import { ScrollView } from 'react-native'
4+ import { InfoHeader } from '@frogpond/info-header'
45import {
56 TableView ,
67 Section ,
@@ -9,7 +10,6 @@ import {
910} from '@frogpond/tableview'
1011import { submitReport } from './submit'
1112import type { WordType } from '../types'
12- import * as c from '@frogpond/colors'
1313import type { TopLevelViewPropsType } from '../../types'
1414
1515type Props = TopLevelViewPropsType & {
@@ -65,13 +65,11 @@ export class DictionaryEditorView extends React.PureComponent<Props, State> {
6565 keyboardDismissMode = "on-drag"
6666 keyboardShouldPersistTaps = "always"
6767 >
68- < View style = { styles . helpWrapper } >
69- < Text style = { styles . helpTitle } > Thanks for spotting a problem!</ Text >
70- < Text style = { styles . helpDescription } >
71- If you could tell us what the word and definition should be,
72- we’d greatly appreciate it.
73- </ Text >
74- </ View >
68+ < InfoHeader
69+ message = "If you could tell us what the word and definition should be,
70+ we’d greatly appreciate it."
71+ title = "Thanks for spotting a problem!"
72+ />
7573
7674 < TableView >
7775 < Section header = "WORD" >
@@ -120,25 +118,3 @@ const DefinitionCell = ({text, onChange = () => {}}: TextFieldProps) => (
120118 value = { text }
121119 />
122120)
123-
124- const styles = StyleSheet . create ( {
125- helpWrapper : {
126- backgroundColor : c . white ,
127- borderWidth : StyleSheet . hairlineWidth ,
128- borderTopColor : c . iosHeaderTopBorder ,
129- borderBottomColor : c . iosHeaderBottomBorder ,
130- marginBottom : 10 ,
131- } ,
132- helpTitle : {
133- fontSize : 16 ,
134- fontWeight : 'bold' ,
135- paddingTop : 15 ,
136- paddingHorizontal : 15 ,
137- } ,
138- helpDescription : {
139- fontSize : 14 ,
140- paddingTop : 5 ,
141- paddingBottom : 15 ,
142- paddingHorizontal : 15 ,
143- } ,
144- } )
0 commit comments