From 22af99d7ffacf3e353373acd0ccb4b4c7ba7176c Mon Sep 17 00:00:00 2001 From: Jared He <66887902+jaredjhe@users.noreply.github.com> Date: Wed, 7 Sep 2022 21:03:13 -0400 Subject: [PATCH] Some code review fixes --- components/Timeline.module.css | 2 -- components/Timeline.tsx | 19 +++---------------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/components/Timeline.module.css b/components/Timeline.module.css index 20f5bee..f3bb6ef 100644 --- a/components/Timeline.module.css +++ b/components/Timeline.module.css @@ -1,6 +1,5 @@ .wrapper { position: relative; - height: 100%; } .line { @@ -22,7 +21,6 @@ .timelineSection { width: 100%; - height: 100%; display: flex; flex-direction: row; justify-content: center; diff --git a/components/Timeline.tsx b/components/Timeline.tsx index 89ad303..65e81ac 100644 --- a/components/Timeline.tsx +++ b/components/Timeline.tsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import React from "react"; import styles from "./Timeline.module.css"; @@ -111,30 +111,19 @@ function TimelineSection({ textWidth, gap, }: TimelineSectionProps) { - const [onHover, setHover] = useState(false); - - const handleMouseEnter = () => { - setHover(true); - }; - const handleMouseLeave = () => setHover(false); - return (
{isTimeUppercase ? datum.time.toUpperCase() : datum.time}
{datum.text}