Skip to content

Commit

Permalink
fix: 🐛 height and width props added to Validprops in CoreBox
Browse files Browse the repository at this point in the history
  • Loading branch information
Edithmark42 committed Jan 15, 2024
1 parent 62834ca commit 72a4a42
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions package/components/layouts/CoreBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,17 @@ CoreBox.validProps = [
name : "component",
types: [{ default: "", type: "elementType" }],
},
{
description:
"The component used for setting the height.",
name : "height",
types: [{ type: "number" }],
},
{
description:
"The component used for setting the height.",
name : "width",
types: [{ type: "number" }],
},
];
export default CoreBox;
11 changes: 11 additions & 0 deletions package/components/navigation/CoreNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ import React from "react";
// eslint-disable-next-line import/no-unresolved
import { NativeNavigation } from "@wrappid/native";

import { sanitizeComponentProps } from "../../utils/componentUtil";

export default function CoreNavigation(props) {
props = sanitizeComponentProps(CoreNavigation, props);
return <NativeNavigation>{props.children}</NativeNavigation>;
}
CoreNavigation.validProps = [
{
description:
"The component used for the root node. Either a string to use a HTML element or a component.",
name : "component",
types: [{ default: "", type: "elementType" }],
},
];

0 comments on commit 72a4a42

Please sign in to comment.