Skip to content

Infra/ remove useCustomTheme leftovers #2666

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
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions demo/src/screens/ExampleScreenPresenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export function renderBooleanOption(title: string,
{title}
</Text>
<Switch
useCustomTheme
key={key}
testID={key}
value={value}
Expand Down Expand Up @@ -84,7 +83,6 @@ export function renderBooleanGroup(title: string, options: string[]) {
<View spread centerH row key={key}>
<Checkbox
marginR-s2
useCustomTheme
key={key}
testID={key}
value={value}
Expand Down Expand Up @@ -125,7 +123,6 @@ export function renderRadioGroup(title: string,
{_.map(options, (value, key) => {
return (
<RadioButton
useCustomTheme
testID={key}
key={key}
marginB-s2
Expand Down
3 changes: 0 additions & 3 deletions src/components/dateTimePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ const DateTimePicker = forwardRef((props: DateTimePickerPropsInternal, ref: Forw
onChange,
dialogProps,
headerStyle,
// @ts-expect-error
useCustomTheme,
testID,
migrateTextField = true,
...others
Expand Down Expand Up @@ -240,7 +238,6 @@ const DateTimePicker = forwardRef((props: DateTimePickerPropsInternal, ref: Forw
<Button
link
iconSource={Assets.icons.check}
useCustomTheme={useCustomTheme}
onPress={onDonePressed}
testID={`${testID}.done`}
/>
Expand Down
7 changes: 1 addition & 6 deletions src/components/stepper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ interface Props {
* Test id for component
*/
testID?: string;
/**
* useCustomTheme for component.
*/
useCustomTheme?: boolean;
}
export type StepperProps = Props;

Expand Down Expand Up @@ -173,7 +169,7 @@ class Stepper extends PureComponent<Props, State> {
}

renderButton(actionType: ActionType) {
const {disabled, small, testID, useCustomTheme} = this.props;
const {disabled, small, testID} = this.props;
const allowStepChange = this.allowStepChange(actionType);
const minusButton = small ? minusOutlineSmall : minusOutline;
const plusButton = small ? plusOutlineSmall : plusOutline;
Expand All @@ -186,7 +182,6 @@ class Stepper extends PureComponent<Props, State> {
disabled={disabled || !allowStepChange}
onPress={() => this.handleStepChange(actionType)}
testID={actionType === ActionType.MINUS ? `${testID}.minusStep` : `${testID}.plusStep`}
useCustomTheme={useCustomTheme}
/>
);
}
Expand Down