Skip to content

Commit 8b65157

Browse files
committed
clean up the ksto error message display
1 parent 42ab53e commit 8b65157

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

source/views/streaming/radio.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,17 @@ export default class KSTOView extends React.PureComponent<void, Props, State> {
160160
</View>
161161

162162
<View style={styles.container}>
163-
<Title />
163+
<View style={styles.titleWrapper}>
164+
<Text selectable={true} style={styles.heading}>
165+
St. Olaf College Radio
166+
</Text>
167+
<Text selectable={true} style={styles.subHeading}>
168+
KSTO 93.1 FM
169+
</Text>
170+
171+
{error}
172+
</View>
164173

165-
{error}
166174
{button}
167175

168176
{this.state.playState === 'playing'
@@ -180,15 +188,6 @@ export default class KSTOView extends React.PureComponent<void, Props, State> {
180188
}
181189
}
182190

183-
const Title = () =>
184-
<View style={styles.titleWrapper}>
185-
<Text selectable={true} style={styles.heading}>
186-
St. Olaf College Radio
187-
</Text>
188-
<Text selectable={true} style={styles.subHeading}>
189-
KSTO 93.1 FM
190-
</Text>
191-
</View>
192191

193192
type ActionButtonProps = {
194193
icon: string,
@@ -246,10 +245,12 @@ const styles = StyleSheet.create({
246245
textAlign: 'center',
247246
},
248247
status: {
249-
paddingTop: 10,
250248
fontWeight: '400',
251-
fontSize: 24,
249+
fontSize: 18,
250+
textAlign: 'center',
252251
color: c.grapefruit,
252+
marginTop: 15,
253+
marginBottom: 5,
253254
},
254255
})
255256

0 commit comments

Comments
 (0)