Skip to content

Commit af4482d

Browse files
committed
test: snap
1 parent 0e0fbd2 commit af4482d

File tree

2 files changed

+11
-22
lines changed

2 files changed

+11
-22
lines changed

components/accordion/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,7 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
107107
<View
108108
collapsable={false}
109109
pointerEvents="auto"
110-
style={
111-
Object {
112-
"height": 0,
113-
"overflow": "hidden",
114-
}
115-
}
110+
style={Object {}}
116111
>
117112
<View
118113
collapsable={false}
@@ -557,12 +552,7 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
557552
<View
558553
collapsable={false}
559554
pointerEvents="auto"
560-
style={
561-
Object {
562-
"height": 0,
563-
"overflow": "hidden",
564-
}
565-
}
555+
style={Object {}}
566556
>
567557
<View
568558
collapsable={false}

components/provider/AccessibilityContext.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ export interface AccessibilityContextProps {
1010
children?: React.ReactNode
1111
}
1212

13-
export const AccessibilityContextProvider: React.FC<
14-
AccessibilityContextProps
15-
> = ({ children, isRTL }) => {
16-
const originValue = React.useContext(AccessibilityContext)
17-
return (
18-
<AccessibilityContext.Provider value={isRTL ?? originValue}>
19-
{children}
20-
</AccessibilityContext.Provider>
21-
)
22-
}
13+
export const AccessibilityContextProvider: React.FC<AccessibilityContextProps> =
14+
({ children, isRTL }) => {
15+
const originValue = React.useContext(AccessibilityContext)
16+
return (
17+
<AccessibilityContext.Provider value={isRTL ?? originValue}>
18+
{children}
19+
</AccessibilityContext.Provider>
20+
)
21+
}
2322

2423
export default AccessibilityContext

0 commit comments

Comments
 (0)