diff --git a/README.md b/README.md index 4ec9275c..2ec9ee32 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ const { Stack, useFlow } = stackflow({ // ... }); -const App: React.FC = () => { +const App = () => { return ( ); diff --git a/demo/src/App.tsx b/demo/src/App.tsx index 9333a1bf..8832be29 100644 --- a/demo/src/App.tsx +++ b/demo/src/App.tsx @@ -2,7 +2,7 @@ import { StrictMode, Suspense } from "react"; import { Stack } from "./stackflow"; -const App: React.FC = () => ( +const App = () => ( diff --git a/demo/src/assets/IconBell.tsx b/demo/src/assets/IconBell.tsx index dd7c7786..97e9f6cb 100644 --- a/demo/src/assets/IconBell.tsx +++ b/demo/src/assets/IconBell.tsx @@ -6,7 +6,7 @@ const SVG = ` `; -const IconBell: React.FC = () => ( +const IconBell = () => (
); diff --git a/demo/src/assets/IconChatting.tsx b/demo/src/assets/IconChatting.tsx index efd7d3a8..6a9c4611 100644 --- a/demo/src/assets/IconChatting.tsx +++ b/demo/src/assets/IconChatting.tsx @@ -6,7 +6,7 @@ const SVG = ` `; -const IconChatting: React.FC = () => ( +const IconChatting = () => (
); diff --git a/demo/src/assets/IconExpandMore.tsx b/demo/src/assets/IconExpandMore.tsx index 4d43cdec..5645618d 100644 --- a/demo/src/assets/IconExpandMore.tsx +++ b/demo/src/assets/IconExpandMore.tsx @@ -6,7 +6,7 @@ const SVG = ` `; -const IconExpandMore: React.FC = () => ( +const IconExpandMore = () => (
); diff --git a/demo/src/assets/IconHome.tsx b/demo/src/assets/IconHome.tsx index 059067e4..2eb22a97 100644 --- a/demo/src/assets/IconHome.tsx +++ b/demo/src/assets/IconHome.tsx @@ -6,7 +6,7 @@ const SVG = ` `; -const IconHome: React.FC = () => ( +const IconHome = () => (
); diff --git a/demo/src/assets/IconMenu.tsx b/demo/src/assets/IconMenu.tsx index 07bf7661..5edc1f2a 100644 --- a/demo/src/assets/IconMenu.tsx +++ b/demo/src/assets/IconMenu.tsx @@ -8,7 +8,7 @@ const SVG = ` `; -const IconMenu: React.FC = () => ( +const IconMenu = () => (
); diff --git a/demo/src/assets/IconProfile.tsx b/demo/src/assets/IconProfile.tsx index e72559da..ccb326ec 100644 --- a/demo/src/assets/IconProfile.tsx +++ b/demo/src/assets/IconProfile.tsx @@ -7,7 +7,7 @@ const SVG = ` `; -const IconProfile: React.FC = () => ( +const IconProfile = () => (
); diff --git a/demo/src/assets/IconSearch.tsx b/demo/src/assets/IconSearch.tsx index 9cf80da5..3846e399 100644 --- a/demo/src/assets/IconSearch.tsx +++ b/demo/src/assets/IconSearch.tsx @@ -6,7 +6,7 @@ const SVG = ` `; -const IconSearch: React.FC = () => ( +const IconSearch = () => (
); diff --git a/demo/src/assets/IconSell.tsx b/demo/src/assets/IconSell.tsx index 34064c6d..54d4df8d 100644 --- a/demo/src/assets/IconSell.tsx +++ b/demo/src/assets/IconSell.tsx @@ -8,7 +8,7 @@ const SVG = ` `; -const IconSell: React.FC = () => ( +const IconSell = () => (
); diff --git a/demo/src/assets/IconSettings.tsx b/demo/src/assets/IconSettings.tsx index 3d49f8d8..16973127 100644 --- a/demo/src/assets/IconSettings.tsx +++ b/demo/src/assets/IconSettings.tsx @@ -7,7 +7,7 @@ const SVG = ` `; -const IconSettings: React.FC = () => ( +const IconSettings = () => (
); diff --git a/demo/src/assets/ImageProfileRating.tsx b/demo/src/assets/ImageProfileRating.tsx index 5b98d9b2..d8619b0f 100644 --- a/demo/src/assets/ImageProfileRating.tsx +++ b/demo/src/assets/ImageProfileRating.tsx @@ -42,7 +42,7 @@ const SVG = ` `; -const ImageProfileRating: React.FC = () => ( +const ImageProfileRating = () => (
); diff --git a/demo/src/components/ArticleCard.tsx b/demo/src/components/ArticleCard.tsx index 1bd4e57e..85f19d19 100644 --- a/demo/src/components/ArticleCard.tsx +++ b/demo/src/components/ArticleCard.tsx @@ -8,11 +8,7 @@ interface ArticleCardProps { title: string; price: number; } -const ArticleCard: React.FC = ({ - articleId, - title, - price, -}) => { +const ArticleCard = ({ articleId, title, price }: ArticleCardProps) => { const { push } = useFlow(); const imageUrl = `https://picsum.photos/800/800/?id=${articleId}`; diff --git a/demo/src/components/ArticleProfile.tsx b/demo/src/components/ArticleProfile.tsx index 4d6755d4..d9c37340 100644 --- a/demo/src/components/ArticleProfile.tsx +++ b/demo/src/components/ArticleProfile.tsx @@ -3,7 +3,7 @@ import { LazyLoadImage } from "react-lazy-load-image-component"; import ImageProfileRating from "../assets/ImageProfileRating"; import * as css from "./ArticleProfile.css"; -const ArticleProfile: React.FC = () => { +const ArticleProfile = () => { const imageUrl = `https://picsum.photos/120/120/`; return ( diff --git a/demo/src/components/BottomTab.tsx b/demo/src/components/BottomTab.tsx index 5dafeef1..299055e2 100644 --- a/demo/src/components/BottomTab.tsx +++ b/demo/src/components/BottomTab.tsx @@ -5,7 +5,7 @@ import IconProfile from "../assets/IconProfile"; import IconSell from "../assets/IconSell"; import * as css from "./BottomTab.css"; -const BottomTab: React.FC = () => ( +const BottomTab = () => (