Skip to content

Commit

Permalink
ref: remove createStyleSheet from dialog styles
Browse files Browse the repository at this point in the history
  • Loading branch information
zbettenbuk committed Jul 10, 2019
1 parent 8dea338 commit b31d7b4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions react/features/base/dialog/components/native/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { StyleSheet } from 'react-native';

import { ColorSchemeRegistry, schemeColor } from '../../../color-scheme';
import { BoxModel, ColorPalette, createStyleSheet } from '../../../styles';
import { BoxModel, ColorPalette } from '../../../styles';

import { PREFERRED_DIALOG_SIZE } from '../../constants';

Expand Down Expand Up @@ -50,7 +50,7 @@ export const bottomSheetStyles = {
}
};

export const brandedDialog = createStyleSheet({
export const brandedDialog = {

/**
* The style of bold {@code Text} rendered by the {@code Dialog}s of the
Expand Down Expand Up @@ -95,8 +95,12 @@ export const brandedDialog = createStyleSheet({
flexDirection: 'row',
justifyContent: 'center',
padding: 30
},

overlayTouchable: {
...StyleSheet.absoluteFillObject
}
});
};

/**
* Reusable (colored) style for text in any branded dialogs.
Expand All @@ -107,7 +111,7 @@ const brandedDialogText = {
textAlign: 'center'
};

export const inputDialog = createStyleSheet({
export const inputDialog = {
bottomField: {
marginBottom: 0
},
Expand All @@ -122,7 +126,7 @@ export const inputDialog = createStyleSheet({
fontStyle: 'italic',
margin: BoxModel.margin
}
});
};

/**
* Default styles for the items of a {@code BottomSheet}-based menu.
Expand Down

0 comments on commit b31d7b4

Please sign in to comment.