Skip to content

Commit e801b32

Browse files
authored
Merge pull request #2 from yngfoxx/yngfoxx-patch-2
refactor: removed inline style
2 parents 76a4e1e + b836771 commit e801b32

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/Date/Month.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,12 @@ function Month(props: MonthSingleProps | MonthRangeProps | MonthMultiProps) {
303303
>
304304
{monthName} {year}
305305
</Text>
306-
<View style={{
307-
...(isHorizontal ? styles.opacity1 : styles.opacity0),
308-
padding: 8,
309-
}}>
306+
<View
307+
style={[
308+
styles.iconWrapper,
309+
isHorizontal ? styles.opacity1 : styles.opacity0
310+
]}
311+
>
310312
<Icon
311313
size={24}
312314
color={theme.isV3
@@ -368,6 +370,9 @@ export const monthHeaderSingleHeight =
368370
monthHeaderSingleMarginTop + monthHeaderSingleMarginBottom
369371

370372
const styles = StyleSheet.create({
373+
iconWrapper: {
374+
padding: 8
375+
},
371376
week: {
372377
flexDirection: 'row',
373378
marginBottom: weekMargin,

0 commit comments

Comments
 (0)