mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 23:02:43 +01:00
refactored text styles, not enough shared
This commit is contained in:
@@ -2,11 +2,10 @@ import { useNavigation } from '@react-navigation/core'
|
||||
import { useAtom } from 'jotai'
|
||||
import md5 from 'md5'
|
||||
import React from 'react'
|
||||
import { Button, Text, View } from 'react-native'
|
||||
import { Button, StyleSheet, Text, View } from 'react-native'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
import { appSettingsAtom } from '@app/state/settings'
|
||||
import { getAllKeys, multiRemove } from '@app/storage/asyncstorage'
|
||||
import text from '@app/styles/text'
|
||||
|
||||
const TestControls = () => {
|
||||
const navigation = useNavigation()
|
||||
@@ -57,8 +56,8 @@ const ServerSettingsView = () => {
|
||||
<Button title="Add default server" onPress={bootstrapServer} />
|
||||
{appSettings.servers.map(s => (
|
||||
<View key={s.id}>
|
||||
<Text style={text.paragraph}>{s.address}</Text>
|
||||
<Text style={text.paragraph}>{s.username}</Text>
|
||||
<Text style={styles.text}>{s.address}</Text>
|
||||
<Text style={styles.text}>{s.username}</Text>
|
||||
</View>
|
||||
))}
|
||||
</View>
|
||||
@@ -74,4 +73,10 @@ const SettingsView = () => (
|
||||
</View>
|
||||
)
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
text: {
|
||||
color: 'white',
|
||||
},
|
||||
})
|
||||
|
||||
export default SettingsView
|
||||
|
||||
Reference in New Issue
Block a user