Skip to content

Commit 4f948b5

Browse files
committed
Reverting changes to screens
1 parent 804b06e commit 4f948b5

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

demo/src/screens/componentScreens/IconScreen.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ const IconScreen = () => {
1616
<Icon
1717
margin-30
1818
size={customSize ? size : undefined}
19-
tintColor={customColor ? (color as string) : undefined}
19+
tintColor={customColor ? color as string : undefined}
2020
source={Assets.icons.search}
2121
/>
2222
</View>
23+
2324
<View marginB-s3 row>
2425
<Text marginR-s2>Custom Size</Text>
2526
<Switch value={customSize} onValueChange={setCustomSize}/>
@@ -28,6 +29,7 @@ const IconScreen = () => {
2829
<Text marginB-50 marginT-s2>
2930
Custom size: {size}
3031
</Text>
32+
3133
<View marginB-s3 row>
3234
<Text marginR-s2>Custom Color</Text>
3335
<Switch value={customColor} onValueChange={setCustomColor}/>

demo/src/screens/incubatorScreens/IncubatorSliderScreen.tsx

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -201,17 +201,14 @@ const IncubatorSliderScreen = () => {
201201
<Text text90 $textNeutral>
202202
DEFAULT
203203
</Text>
204-
{
205-
// @ts-ignore
206-
<GradientSlider
207-
color={color}
208-
containerStyle={styles.gradientSliderContainer}
209-
onValueChange={onGradientValueChange}
210-
// @ts-expect-error
211-
ref={this.gradientSlider}
212-
migrate
213-
/>
214-
}
204+
<GradientSlider
205+
color={color}
206+
containerStyle={styles.gradientSliderContainer}
207+
onValueChange={onGradientValueChange}
208+
// @ts-expect-error
209+
ref={this.gradientSlider}
210+
migrate
211+
/>
215212
<View style={styles.box}>
216213
<View style={{flex: 1, backgroundColor: color, opacity: alpha}}/>
217214
</View>
@@ -220,16 +217,13 @@ const IncubatorSliderScreen = () => {
220217
<Text text90 $textNeutral>
221218
HUE
222219
</Text>
223-
{
224-
// @ts-ignore
225-
<GradientSlider
226-
type={GradientSlider.types.HUE}
227-
color={COLOR}
228-
containerStyle={styles.gradientSliderContainer}
229-
onValueChange={onGradientValueChange}
230-
migrate
231-
/>
232-
}
220+
<GradientSlider
221+
type={GradientSlider.types.HUE}
222+
color={COLOR}
223+
containerStyle={styles.gradientSliderContainer}
224+
onValueChange={onGradientValueChange}
225+
migrate
226+
/>
233227
<View style={styles.box}>
234228
<View style={{flex: 1, backgroundColor: color}}/>
235229
</View>

0 commit comments

Comments
 (0)