From 7b5f7cfe866e5b301febd10d58f59ce3164ac93a Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sun, 5 Jan 2020 17:34:49 +0100 Subject: [PATCH] remove unecessary --- components/Suspend.tsx | 8 -------- {src/Screens => screens}/Letters.tsx | 13 +++++++++---- 2 files changed, 9 insertions(+), 12 deletions(-) delete mode 100644 components/Suspend.tsx rename {src/Screens => screens}/Letters.tsx (72%) diff --git a/components/Suspend.tsx b/components/Suspend.tsx deleted file mode 100644 index ede5ac6..0000000 --- a/components/Suspend.tsx +++ /dev/null @@ -1,8 +0,0 @@ -import React, { Suspense } from 'react' - - -const Suspend: (C: React.ComponentType) => React.ComponentType = (C) => () => { - return ...} children={}/> -} - -export default Suspend \ No newline at end of file diff --git a/src/Screens/Letters.tsx b/screens/Letters.tsx similarity index 72% rename from src/Screens/Letters.tsx rename to screens/Letters.tsx index 3e45099..81ea1d9 100644 --- a/src/Screens/Letters.tsx +++ b/screens/Letters.tsx @@ -1,5 +1,10 @@ import React, { useEffect, useRef, useState } from 'react' -import LetterAnimation from '../Components/LetterAnimation' + +import LetterAnimation from '../components/LetterAnimation' + +import '../styles/Letters.styl' + + type Pair = [string, string] @@ -16,7 +21,6 @@ const Letters: React.FC = React.memo(() => { const [index, setIndex] = useState(0) const wrapper = useRef(null) - useEffect(() => { setTimeout( () => setIndex((index < pairs.length - 1) ? index + 1 : 0), @@ -25,8 +29,9 @@ const Letters: React.FC = React.memo(() => { }, [index]) return - - + +
+
})