mirror of
https://github.com/Jellify-Music/App.git
synced 2026-02-09 03:58:33 -06:00
styling
This commit is contained in:
@@ -72,7 +72,9 @@ export default function ServerAddress(): React.JSX.Element {
|
||||
<Input
|
||||
value={serverAddress}
|
||||
placeholder="jellyfin.org"
|
||||
onChangeText={setServerAddress} />
|
||||
onChangeText={setServerAddress}
|
||||
width={300}
|
||||
/>
|
||||
</XStack>
|
||||
<Button
|
||||
disabled={_.isEmpty(serverAddress)}
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
import React, { SetStateAction } from 'react';
|
||||
import { Input as TamaguiInput} from 'tamagui';
|
||||
import { StyleProp } from 'react-native';
|
||||
import { Input as TamaguiInput, TextStyle} from 'tamagui';
|
||||
|
||||
interface InputProps {
|
||||
onChangeText: React.Dispatch<SetStateAction<string | undefined>>,
|
||||
placeholder: string
|
||||
value: string | undefined;
|
||||
secureTextEntry?: boolean | undefined;
|
||||
width?: number | undefined
|
||||
}
|
||||
|
||||
export default function Input(props: InputProps): React.JSX.Element {
|
||||
@@ -15,7 +17,7 @@ export default function Input(props: InputProps): React.JSX.Element {
|
||||
placeholder={props.placeholder}
|
||||
onChangeText={props.onChangeText}
|
||||
value={props.value}
|
||||
minWidth={300}
|
||||
width={props.width}
|
||||
secureTextEntry={props.secureTextEntry}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user