From 5a4a722888614568b93cd5906411f784a3738ca7 Mon Sep 17 00:00:00 2001 From: Bucky Schwarz Date: Thu, 12 Dec 2024 15:52:43 -0500 Subject: [PATCH] Fix improper styled-components import in DatePicker. Fix import of tsx syntax --- src/components/CodeBlock/CodeBlock.tsx | 2 +- src/components/DatePicker/DatePicker.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/CodeBlock/CodeBlock.tsx b/src/components/CodeBlock/CodeBlock.tsx index 86ad5abc..8e7f3f67 100644 --- a/src/components/CodeBlock/CodeBlock.tsx +++ b/src/components/CodeBlock/CodeBlock.tsx @@ -7,7 +7,7 @@ import { EmptyButton } from "../commonElement"; import sql from "react-syntax-highlighter/dist/cjs/languages/hljs/sql"; import bash from "react-syntax-highlighter/dist/cjs/languages/hljs/bash"; import json from "react-syntax-highlighter/dist/cjs/languages/hljs/json"; -import tsx from "react-syntax-highlighter/dist/cjs/languages/prism/typescript"; +import tsx from "react-syntax-highlighter/dist/cjs/languages/hljs/typescript" SyntaxHighlighter.registerLanguage("sql", sql); SyntaxHighlighter.registerLanguage("bash", bash); diff --git a/src/components/DatePicker/DatePicker.tsx b/src/components/DatePicker/DatePicker.tsx index 974bd283..434d76d6 100644 --- a/src/components/DatePicker/DatePicker.tsx +++ b/src/components/DatePicker/DatePicker.tsx @@ -1,10 +1,10 @@ import { useEffect, useId, useState } from "react"; import { isSameDate, useCalendar, UseCalendarOptions } from "@h6s/calendar"; +import { styled } from "styled-components"; import Dropdown from "../Dropdown/Dropdown"; import { Icon } from "../Icon/Icon"; import { InputElement, InputWrapper } from "../Input/InputWrapper"; import { Container } from "../Container/Container"; -import styled from "styled-components"; import { IconButton } from "../IconButton/IconButton"; const locale = "en-US";