From 4774e8b51fca8bf939a7cdc6a714572f3d2352f2 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Tue, 2 Sep 2025 11:03:38 +0800 Subject: [PATCH] Fixed children prop use of any --- fwt/components/Column/Column.tsx | 2 +- fwt/components/Footer/Footer.tsx | 2 +- fwt/components/HTML/HTML.tsx | 2 +- fwt/components/Navbar/Navbar.tsx | 2 +- fwt/components/Row/Row.tsx | 6 ++---- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/fwt/components/Column/Column.tsx b/fwt/components/Column/Column.tsx index 9e84a11..3dd4d24 100644 --- a/fwt/components/Column/Column.tsx +++ b/fwt/components/Column/Column.tsx @@ -1,7 +1,7 @@ import './Column.sass' interface Props { - children: any + children: HTMLElement content: 'top' | 'center' | 'right' | 'split' | 'spaced' gap?: number } diff --git a/fwt/components/Footer/Footer.tsx b/fwt/components/Footer/Footer.tsx index ca71e92..658839c 100644 --- a/fwt/components/Footer/Footer.tsx +++ b/fwt/components/Footer/Footer.tsx @@ -1,7 +1,7 @@ import './Footer.sass' interface Props { - children: any + children: HTMLElement } export default (props: Props) => { diff --git a/fwt/components/HTML/HTML.tsx b/fwt/components/HTML/HTML.tsx index b5ead9e..3fd7566 100644 --- a/fwt/components/HTML/HTML.tsx +++ b/fwt/components/HTML/HTML.tsx @@ -4,7 +4,7 @@ interface Props { title: string name: string description: string - children: any + children: HTMLElement font?: string } diff --git a/fwt/components/Navbar/Navbar.tsx b/fwt/components/Navbar/Navbar.tsx index 81f39c4..3b0c688 100644 --- a/fwt/components/Navbar/Navbar.tsx +++ b/fwt/components/Navbar/Navbar.tsx @@ -4,7 +4,7 @@ import Row from '../Row/Row' interface Props { transparent?: boolean - children: any + children: HTMLElement } export default (props: Props) => { diff --git a/fwt/components/Row/Row.tsx b/fwt/components/Row/Row.tsx index f5d1b97..e899e9a 100644 --- a/fwt/components/Row/Row.tsx +++ b/fwt/components/Row/Row.tsx @@ -2,7 +2,7 @@ import './Row.sass' import { Show } from 'solid-js' interface Props { - children: any + children: HTMLElement content: 'left' | 'center' | 'right' | 'split' | 'spaced' | 'even' gap?: number } @@ -17,9 +17,7 @@ export default (props: Props) => { -
- {props.children} -
+
{props.children}
)