Skip to content

fix prop types for ChipsInput props #1139

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

Merged
merged 1 commit into from
Jan 19, 2021
Merged

Conversation

Dor256
Copy link
Contributor

@Dor256 Dor256 commented Jan 19, 2021

Description

Fix typing of ChipsInputProps by extending TextInputProps

Changelog

Fix ChipsInput prop typings

@Dor256 Dor256 added the typescript typescript related issue label Jan 19, 2021
@Dor256 Dor256 requested review from ethanshar and M-i-k-e-l January 19, 2021 09:44
@@ -1,7 +1,9 @@
import { TypographyModifiers } from 'generatedTypes';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like you've left this be mistake

Copy link
Contributor Author

Choose a reason for hiding this comment

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

woops - fixing

import {ReactElement} from 'react';
import {StyleProp, TextStyle, ViewStyle, AccessibilityProps, ColorValue} from 'react-native';
import {BaseComponent} from '../commons';
import {AccessibilityProps} from '../modifiers';
import { TextInputProps } from './Inputs';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this be TextFieldProps?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, I don't really know as I've only seen this used in our module as TextInput you know the use cases better than me :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Collaborator

@M-i-k-e-l M-i-k-e-l Jan 19, 2021

Choose a reason for hiding this comment

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

you know the use cases better than me :)

Not really, it's just using a TextField with {...others} :)

@Dor256 Dor256 force-pushed the chips-input-prop-types branch 2 times, most recently from 40d8cb4 to b2a3f29 Compare January 19, 2021 10:11
@Dor256 Dor256 force-pushed the chips-input-prop-types branch from b2a3f29 to 68741fc Compare January 19, 2021 10:13
@M-i-k-e-l M-i-k-e-l merged commit a75f30c into master Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript typescript related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants