We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cba843 commit 3636163Copy full SHA for 3636163
1 file changed
packages/designto-token/wrappings/wrapping.ts
@@ -30,16 +30,16 @@ export type WrappingToken =
30
* @returns
31
*/
32
export function unwrappedChild(maybeWrapped: Widget): Widget {
33
- const wrapped =
+ if (
34
maybeWrapped instanceof SizedBox ||
35
maybeWrapped instanceof Stretched ||
36
maybeWrapped instanceof Positioned ||
37
maybeWrapped instanceof OverflowBox ||
38
maybeWrapped instanceof Rotation ||
39
maybeWrapped instanceof Opacity ||
40
maybeWrapped instanceof Blurred ||
41
- maybeWrapped instanceof ClipRRect;
42
- if (wrapped) {
+ maybeWrapped instanceof ClipRRect
+ ) {
43
return unwrappedChild(maybeWrapped.child);
44
}
45
return maybeWrapped;
0 commit comments