From b529a24587cee348063995bf3c348b25c19e0548 Mon Sep 17 00:00:00 2001 From: Jared He <66887902+jaredjhe@users.noreply.github.com> Date: Wed, 7 Sep 2022 23:07:16 -0400 Subject: [PATCH] Do not make Timeline default export --- components/Timeline.tsx | 2 +- pages/playground.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Timeline.tsx b/components/Timeline.tsx index 8abc616..643e835 100644 --- a/components/Timeline.tsx +++ b/components/Timeline.tsx @@ -26,7 +26,7 @@ interface TimelineProps { className?: string; } -export default function Timeline({ +export function Timeline({ data, isTimeUppercase = true, lineWidth = 5, diff --git a/pages/playground.tsx b/pages/playground.tsx index dc0cad8..c78c6e5 100644 --- a/pages/playground.tsx +++ b/pages/playground.tsx @@ -13,7 +13,7 @@ import React from "react"; import { PieChart } from "@/components/PieChart"; import { QuotationCarousel } from "@/components/QuotationCarousel"; -import Timeline from "@/components/Timeline"; +import { Timeline } from "@/components/Timeline"; import { ColorPalette } from "../components/ColorPalette"; import { WordCloud } from "../components/WordCloud";