Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design changes for search box and searchInput #28

Merged
merged 4 commits into from Dec 13, 2018

Conversation

speedcuber911
Copy link
Contributor

No description provided.

@speedcuber911 speedcuber911 changed the title Design changes for searcg box and searchInput Design changes for search box and searchInput Dec 4, 2018
@@ -89,19 +101,31 @@ export default class extends React.PureComponent<
);
};

renderNoResultState = query => {
const { noResultsElement = noop, zerothState = noop } = this.props;
return !query ? zerothState() : noResultsElement(query);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defaultState

<View>
<View style={styles.textWrapper}>
<TouchableWithoutFeedback onPress={onClose}>
<Icon
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrap this in a View

@@ -122,7 +146,7 @@ export default class extends React.PureComponent<
}
>
<View style={styles.clearIcon}>
<Icon name="close" color={colors.violet.base} size={20} />
<Icon name="close" color={colors.gray.darker} size={8} bold />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no prop as bold

@@ -10,6 +10,8 @@ export interface SearchBoxProps {
onSelect: (item: any) => void;
rowLabelExtractor?: (item: any) => string | number;
noResultsElement: (queryValue: string) => JSX.Element;
onClose?: () => void;
zerothState: () => JSX.Element;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional

@ritz078 ritz078 merged commit 9dd5982 into anarock:master Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants