Keep React in scope

This commit is contained in:
Manav Rathi
2024-04-03 21:38:35 +05:30
parent 7a41ba43a5
commit 56d500f4e8
2 changed files with 7 additions and 5 deletions

View File

@@ -1,7 +1,9 @@
import { Container } from "components/Container";
import S from "utils/strings";
import React from "react";
import S from "utils/strings";
export default function Home() {
const Page: React.FC = () => {
return <Container>{S.error_404}</Container>;
}
};
export default Page;

View File

@@ -4,7 +4,7 @@ import React from "react";
import S from "utils/strings";
import "../styles/globals.css";
function MyApp({ Component, pageProps }: AppProps) {
const MyApp = ({ Component, pageProps }: AppProps): React.JSX.Element => {
return (
<>
<Head>
@@ -13,6 +13,6 @@ function MyApp({ Component, pageProps }: AppProps) {
<Component {...pageProps} />
</>
);
}
};
export default MyApp;