@fibery/react 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/wrap.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"files": [
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"react": "^18.2.0"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@fibery/helpers": "1.0
|
|
13
|
+
"@fibery/helpers": "1.1.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@testing-library/react": "13.4.0",
|
package/src/wrap.tsx
CHANGED
|
@@ -31,5 +31,5 @@ export const Wrap = <T extends React.ElementType>({
|
|
|
31
31
|
...rest
|
|
32
32
|
}: Props<T>): JSX.Element => {
|
|
33
33
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
|
-
return condition ? <With {...(rest as any)}>{children}</With> :
|
|
34
|
+
return condition ? <With {...(rest as any)}>{children}</With> : (children as JSX.Element);
|
|
35
35
|
};
|