Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tbergquist-godaddy committed Oct 25, 2019
1 parent 7fcc433 commit 331d220
Show file tree
Hide file tree
Showing 80 changed files with 2,044 additions and 1,828 deletions.
4 changes: 4 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ node_modules/warning/.*

[include]

[declarations]
<PROJECT_ROOT>/node_modules/@kiwicom/account-native

[untyped]
; Be careful - do not add 'StyleSheet' here
.*/node_modules/@react-native-community/cli/.*/.*
Expand Down Expand Up @@ -102,6 +105,7 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*

[lints]
unnecessary-optional-chain=error
untyped-type-import=error

[strict]
;nonstrict-import
Expand Down
11 changes: 8 additions & 3 deletions app/core/src/screens/hotelsStack/placepicker/HotelCityList.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @flow strict
// @flow

import * as React from 'react';
import { FlatList } from 'react-native';
Expand All @@ -14,13 +14,18 @@ type Props = {|
|};

type ItemType = {|
+node?: {| +id: string |},
+node?: {|
+id: string,
+$fragmentRefs: any,
|},
|};

class HotelCityList extends React.Component<Props> {
keyExtractor = (item: ItemType) => item.node?.id;

renderItem = ({ item }) => <HotelCityItem data={item.node} onPress={this.props.onPress} />;
renderItem = ({ item }: {| +item: ItemType |}) => (
<HotelCityItem data={item.node} onPress={this.props.onPress} />
);

render() {
const data = this.props.data?.edges ?? [];
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/hotels/src/allHotels/HotelTitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default createFragmentContainer(HotelTitle, {
const style = StyleSheet.create({
title: {
fontWeight: '600',
color: defaultTokens.colorTextAttention,
color: defaultTokens.colorTextPrimary,
fontSize: 14,
lineHeight: 18,
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 331d220

Please sign in to comment.