feat(dialog) updated LoginDialog

This commit is contained in:
Calinteodor
2022-02-04 16:58:33 +02:00
committed by GitHub
parent 2e8a635373
commit f282dbb5dc
3 changed files with 50 additions and 53 deletions

View File

@@ -12,7 +12,7 @@ import AbstractDialog, {
type State as AbstractState
} from '../AbstractDialog';
import { FIELD_UNDERLINE, inputDialog as styles } from './styles';
import { inputDialog as styles } from './styles';
type Props = AbstractProps & {
@@ -99,13 +99,9 @@ class InputDialog<P: Props, S: State> extends AbstractDialog<P, S> {
<Dialog.Container
onBackdropPress = { this._onCancel }
visible = { true }>
{
titleKey && (
<Dialog.Title>
{ t(titleKey) }
</Dialog.Title>
)
}
<Dialog.Title>
{ t(titleKey) }
</Dialog.Title>
{
descriptionKey && (
<Dialog.Description>
@@ -116,7 +112,6 @@ class InputDialog<P: Props, S: State> extends AbstractDialog<P, S> {
<Dialog.Input
autoFocus = { true }
onChangeText = { this._onChangeText }
underlineColorAndroid = { FIELD_UNDERLINE }
value = { this.state.fieldValue }
{ ...this.props.textInputProps } />
{

View File

@@ -20,8 +20,6 @@ export const MD_FONT_SIZE = 16;
export const MD_ITEM_HEIGHT = 48;
export const MD_ITEM_MARGIN_PADDING = 16;
export const PLACEHOLDER_COLOR = ColorPalette.lightGrey;
/**
* The React {@code Component} styles of {@code BottomSheet}. These have
* been implemented as per the Material Design guidelines:
@@ -158,10 +156,6 @@ const brandedDialogIconStyle = {
};
export const inputDialog = {
bottomField: {
marginBottom: 0
},
formMessage: {
alignSelf: 'flex-start',
fontStyle: 'italic',