From 289c07454af7d078affcf5b6abd758e32be083fc Mon Sep 17 00:00:00 2001 From: Jacoberson Date: Tue, 5 Oct 2021 16:56:10 -0500 Subject: [PATCH] fix other page --- src/pages/index.tsx | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 636e67a..c6fc362 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -34,8 +34,7 @@ const CodeBlock: React.FC = () => { window.navigator.clipboard.writeText(CURRENT_RECOMMENDED_COMMAND); update(); plausible("clipboard-copy"); - }} - > + }}>
@@ -46,25 +45,23 @@ const CodeBlock: React.FC = () => {
+ }`}> Copied Successfully!
); }; -const VisibilityWrapper: React.FC<{ hash: string }> = (props) => { +const VisibilityWrapper: React.FC<{ hash: string }> = props => { const router = useRouter(); return ( { + onChange={isVisible => { if (isVisible && window.location.hash !== props.hash) { router.replace(props.hash); } }} - partialVisibility - > + partialVisibility> {props.children} ); @@ -91,8 +88,7 @@ const WhyPage = () => { return (
+ className="flex flex-col items-center min-h-screen justify-center cursor-default relative bg-gray-300 text-gray-700">

Why Typescript? @@ -137,9 +133,10 @@ const WhyPage = () => { recommendations can get you pretty far, but we recognize there are problems these tools don't solve well by themselves.

-

+
+

- + Here are some recommendations for when things get more complex @@ -156,8 +153,7 @@ const AboutPage = () => { return (

+ className="flex flex-col items-center min-h-screen justify-center cursor-default relative">

Credits