Skip to content

Commit 20d0ff8

Browse files
committed
fix linter issues
1 parent 9fe6308 commit 20d0ff8

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

DropdownAlert.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,11 +512,11 @@ export default class DropdownAlert extends Component {
512512
const src = isRemote ? {uri: source} : source;
513513
return <Image style={style} source={src} />;
514514
};
515-
_renderTitle = title => {
515+
_renderTitle = (title) => {
516516
if (this.props.renderTitle) {
517517
return this.props.renderTitle(this.props, this.alertData);
518518
}
519-
if (!title || title.length == 0) {
519+
if (!title || title.length === 0) {
520520
return null;
521521
}
522522
const {titleTextProps, titleStyle, titleNumOfLines} = this.props;
@@ -529,11 +529,11 @@ export default class DropdownAlert extends Component {
529529
</Text>
530530
);
531531
};
532-
_renderMessage = message => {
532+
_renderMessage = (message) => {
533533
if (this.props.renderMessage) {
534534
return this.props.renderMessage(this.props, this.alertData);
535535
}
536-
if (!message || message.length == 0) {
536+
if (!message || message.length === 0) {
537537
return null;
538538
}
539539
const {messageTextProps, messageStyle, messageNumOfLines} = this.props;

Example/App.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,20 @@ const App = () => {
1717
{
1818
color: Color.info,
1919
type: 'info',
20-
message: 'System maintenance starts at midnight. System will be down for approximately 3 hours.',
20+
message:
21+
'System maintenance starts at midnight. System will be down for approximately 3 hours.',
2122
},
2223
{
2324
color: Color.warn,
2425
type: 'warn',
25-
message: 'Warning: Low disk space. Please add more at your earliest convenience.',
26+
message:
27+
'Warning: Low disk space. Please add more at your earliest convenience.',
2628
},
2729
{
2830
color: Color.error,
2931
type: 'error',
30-
message: 'Sorry, we are having some technical difficulties. Please try again.',
32+
message:
33+
'Sorry, we are having some technical difficulties. Please try again.',
3134
},
3235
{
3336
color: Color.success,
@@ -37,8 +40,7 @@ const App = () => {
3740
{
3841
color: Color.purple,
3942
type: 'custom',
40-
message:
41-
`Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
43+
message: `Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
4244
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
4345
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
4446
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`,
@@ -80,7 +82,8 @@ Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deseru
8082

8183
const _showAlertQueue = () => {
8284
const types = ['info', 'warn', 'error', 'success', 'custom'];
83-
const message = 'Officia eu do labore incididunt consequat sunt sint ullamco cillum.';
85+
const message =
86+
'Officia eu do labore incididunt consequat sunt sint ullamco cillum.';
8487
let count = 1;
8588
types.map(type => {
8689
dropDownAlertRef.alertWithType(

docs/PROPS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
| Name | Type | Description | Default |
6464
| ----------------------- | :----: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
6565
| `defaultContainer` | Object | Style for inner view container (**override paddingTop with this**) | `{ flexDirection: 'row', padding: 8 }` |
66-
| `defaultTextContainer` | Object | Style for inner text container (holds title and message) | `{ flex: 1, padding: 8 }` |
66+
| `defaultTextContainer` | Object | Style for inner text container (holds title and message) | `{ flex: 1, padding: 8 }` |
6767
| `wrapperStyle` | Object | styles for the view that wraps the container. For [React Native Web](https://github.com/necolas/react-native-web) support you might want to set this to `{ position: 'fixed' }` | `null` |
6868
| `containerStyle` | Object | styles for container for custom type only | `{ flexDirection: 'row', backgroundColor: '#202020' }` |
6969
| `contentContainerStyle` | Object | styles for ContentView | `{ flex: 1, flexDirection: 'row' }` |

0 commit comments

Comments
 (0)