Skip to content

Commit

Permalink
fix: dev warnings (#113)
Browse files Browse the repository at this point in the history
- wrap Main/Input children props in fragments
  • Loading branch information
uipoet authored Jan 6, 2022
1 parent 7fc6098 commit a4ebb5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/input/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const TextInput = forwardRef<

return (
<label aria-expanded={ariaExpanded} className={className} htmlFor={id}>
{leadingIcon}
<>{leadingIcon}</>
<input
{...props}
aria-label={label}
Expand Down
5 changes: 2 additions & 3 deletions src/lib/components/main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import styles from "./main.module.css";

export const Main: FunctionComponent<{
aside?: ReactNode;
footer?: ReactNode;
header?: ReactNode;
navigation?: ReactNode;
}> = ({ children, header, navigation, ...props }) => (
<main className={styles.main} {...props}>
{header}
{navigation}
<>{header}</>
<>{navigation}</>
<div className={styles.body} role="presentation">
{children}
</div>
Expand Down

0 comments on commit a4ebb5c

Please sign in to comment.