Skip to content

Commit ba7fa37

Browse files
authored
Infra/ remove useCustomTheme leftovers (#2666)
1 parent b5a7902 commit ba7fa37

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

demo/src/screens/ExampleScreenPresenter.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export function renderBooleanOption(title: string,
5353
{title}
5454
</Text>
5555
<Switch
56-
useCustomTheme
5756
key={key}
5857
testID={key}
5958
value={value}
@@ -84,7 +83,6 @@ export function renderBooleanGroup(title: string, options: string[]) {
8483
<View spread centerH row key={key}>
8584
<Checkbox
8685
marginR-s2
87-
useCustomTheme
8886
key={key}
8987
testID={key}
9088
value={value}
@@ -125,7 +123,6 @@ export function renderRadioGroup(title: string,
125123
{_.map(options, (value, key) => {
126124
return (
127125
<RadioButton
128-
useCustomTheme
129126
testID={key}
130127
key={key}
131128
marginB-s2

src/components/dateTimePicker/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ const DateTimePicker = forwardRef((props: DateTimePickerPropsInternal, ref: Forw
130130
onChange,
131131
dialogProps,
132132
headerStyle,
133-
// @ts-expect-error
134-
useCustomTheme,
135133
testID,
136134
migrateTextField = true,
137135
...others
@@ -240,7 +238,6 @@ const DateTimePicker = forwardRef((props: DateTimePickerPropsInternal, ref: Forw
240238
<Button
241239
link
242240
iconSource={Assets.icons.check}
243-
useCustomTheme={useCustomTheme}
244241
onPress={onDonePressed}
245242
testID={`${testID}.done`}
246243
/>

src/components/stepper/index.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ interface Props {
5454
* Test id for component
5555
*/
5656
testID?: string;
57-
/**
58-
* useCustomTheme for component.
59-
*/
60-
useCustomTheme?: boolean;
6157
}
6258
export type StepperProps = Props;
6359

@@ -173,7 +169,7 @@ class Stepper extends PureComponent<Props, State> {
173169
}
174170

175171
renderButton(actionType: ActionType) {
176-
const {disabled, small, testID, useCustomTheme} = this.props;
172+
const {disabled, small, testID} = this.props;
177173
const allowStepChange = this.allowStepChange(actionType);
178174
const minusButton = small ? minusOutlineSmall : minusOutline;
179175
const plusButton = small ? plusOutlineSmall : plusOutline;
@@ -186,7 +182,6 @@ class Stepper extends PureComponent<Props, State> {
186182
disabled={disabled || !allowStepChange}
187183
onPress={() => this.handleStepChange(actionType)}
188184
testID={actionType === ActionType.MINUS ? `${testID}.minusStep` : `${testID}.plusStep`}
189-
useCustomTheme={useCustomTheme}
190185
/>
191186
);
192187
}

0 commit comments

Comments
 (0)