Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove unused commonjs plugin #1582

Merged
merged 4 commits into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .storybook/components/TokenSpecimen/TokenSpecimen.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird. What error gets thrown with default export + cjs builds?

Whether it's named or not shouldn't matter.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question; why is clsx having this issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@booc0mtaco paired on this and saw that <Link> is being used in a cjs build from remix-utils which requires clsx, which I thought would pull the main build of clsx according to its package.json but instead uses the module build. Removing that module line in clsx's package json in edu-stack allows it to resolve to the main build instead and works fine with the default export, implying this issue could arise from import/require resolution within edu-stack

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhhhhh, the link to remix-utils might be a clue.

I wonder if remix-utils/Link is importing the ESM version of EDS somehow, which then tries to load the ESM versino of clsx? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remix-utils/Link is using the CJS version, but
How about building both cjs and esm for remix-utils and using conditional exports for it?: aka
This works on edu-stack

import React, { Component } from 'react';
import './TokenSpecimen.css';

Expand Down
2 changes: 1 addition & 1 deletion .storybook/pages/AlongDemo/AlongDemo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React, { useId, useState } from 'react';

import {
Expand Down
2 changes: 1 addition & 1 deletion .storybook/pages/CoursePlannerEdit/CoursePlannerEdit.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React, { useState } from 'react';
import type { ReactNode } from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion .storybook/pages/CoursePlannerStep1/CoursePlannerStep1.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';

import {
Expand Down
2 changes: 1 addition & 1 deletion .storybook/pages/StudentRefinement/StudentRefinement.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import debounce from 'lodash.debounce';
import React, { useEffect, useState } from 'react';

Expand Down
2 changes: 1 addition & 1 deletion .storybook/pages/WireframeDemo/WireframeDemo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React, { useId, useState } from 'react';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import { Card, Heading } from '../../../src';
Expand Down
2 changes: 1 addition & 1 deletion .storybook/recipes/CalendarCard/CalendarCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion .storybook/recipes/NumberIconList/NumberIconList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import styles from './NumberIconList.module.css';
Expand Down
2 changes: 1 addition & 1 deletion .storybook/recipes/PageShell/PageShell.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import { Link, Layout, LayoutContainer, LayoutSection } from '../../../src';
Expand Down
2 changes: 1 addition & 1 deletion .storybook/recipes/PrimaryNav/PrimaryNav.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import type { IconName } from '../../../src';
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [12.0.0-alpha.1](https://github.com/chanzuckerberg/edu-design-system/compare/v12.0.0-alpha.0...v12.0.0-alpha.1) (2023-04-04)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oop alpha publish changelogs snuck in here but shouldn't matter

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked back and saw a few other older builds included alpha stuff in the change log. This shouldn't interfere with any releases, but makes the change log slightly weird

## [12.0.0-alpha.0](https://github.com/chanzuckerberg/edu-design-system/compare/v11.0.0...v12.0.0-alpha.0) (2023-04-04)


Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chanzuckerberg/eds",
"version": "12.0.0-alpha.0",
"version": "12.0.0-alpha.1",
"description": "The React-powered design system library for Chan Zuckerberg Initiative education web applications",
"author": "CZI <[email protected]>",
"homepage": "https://github.com/chanzuckerberg/edu-design-system",
Expand Down Expand Up @@ -109,7 +109,6 @@
"@commitlint/cli": "^17.5.1",
"@commitlint/config-conventional": "^17.4.4",
"@geometricpanda/storybook-addon-badges": "^1.1.1",
"@rollup/plugin-commonjs": "^24.0.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused plugin, tsconfig handles for us

"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-typescript": "^11.0.0",
"@size-limit/file": "^8.2.4",
Expand Down
2 changes: 1 addition & 1 deletion plop-templates/Component/Component.tsx.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';
import styles from './{{pascalCase name}}.module.css';

Expand Down
2 changes: 1 addition & 1 deletion plop-templates/Recipe/Recipe.tsx.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';
import styles from './{{pascalCase name}}.module.css';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Accordion/Accordion.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Disclosure } from '@headlessui/react';
import clsx from 'clsx';
import { clsx } from 'clsx';
import React, { createContext, useContext } from 'react';
import { ENTER_KEYCODE, SPACEBAR_KEYCODE } from '../../util/keycodes';
import Button from '../Button';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';
import Icon from '../Icon';
import styles from './Avatar.module.css';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Badge/Badge.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';
import Icon from '../Icon';
import type { IconName, IconProps } from '../Icon';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import Button from '../Button';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Breadcrumbs/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import debounce from 'lodash.debounce';
import React, { type ReactNode } from 'react';
import { flattenReactChildren } from '../../util/flattenReactChildren';
Expand Down
2 changes: 1 addition & 1 deletion src/components/BreadcrumbsItem/BreadcrumbsItem.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';
import ButtonDropdown from '../ButtonDropdown';
import Icon from '../Icon';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React, { forwardRef } from 'react';
import ClickableStyle from '../ClickableStyle';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ButtonDropdown/ButtonDropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import type { ClickableStyleProps } from '../ClickableStyle';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ButtonGroup/ButtonGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import styles from './ButtonGroup.module.css';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { HTMLAttributes, ReactNode } from 'react';
import React from 'react';
import CardBody from '../CardBody';
Expand Down
2 changes: 1 addition & 1 deletion src/components/CardBody/CardBody.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import styles from '../Card/Card.module.css';
Expand Down
2 changes: 1 addition & 1 deletion src/components/CardFooter/CardFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import styles from '../Card/Card.module.css';
Expand Down
2 changes: 1 addition & 1 deletion src/components/CardHeader/CardHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import styles from '../Card/Card.module.css';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React, { useId } from 'react';
import type { EitherInclusive } from '../../util/utility-types';
import type { CheckboxInputProps } from '../CheckboxInput';
Expand Down
2 changes: 1 addition & 1 deletion src/components/CheckboxInput/CheckboxInput.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';
import useForwardedRef from '../../util/useForwardedRef';
import styles from './CheckboxInput.module.css';
Expand Down
2 changes: 1 addition & 1 deletion src/components/CheckboxLabel/CheckboxLabel.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';
import type { InputLabelProps } from '../InputLabel/InputLabel';
import { InputLabel } from '../InputLabel/InputLabel';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ClickableStyle/ClickableStyle.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { MouseEventHandler, ReactNode } from 'react';
import React from 'react';
import styles from './ClickableStyle.module.css';
Expand Down
2 changes: 1 addition & 1 deletion src/components/DataBar/DataBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React, { useId } from 'react';

import DataBarSegment from '../DataBarSegment';
Expand Down
2 changes: 1 addition & 1 deletion src/components/DataBarSegment/DataBarSegment.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';
import Tooltip from '../Tooltip';
import styles from './DataBarSegment.module.css';
Expand Down
2 changes: 1 addition & 1 deletion src/components/DragDrop/DragDrop.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React, {
type ReactNode,
useState,
Expand Down
2 changes: 1 addition & 1 deletion src/components/DragDropContainer/DragDropContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import type { DroppableProvided } from 'react-beautiful-dnd';
Expand Down
2 changes: 1 addition & 1 deletion src/components/DragDropItem/DragDropItem.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import type { DraggableProvided } from 'react-beautiful-dnd';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Drawer/Drawer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React, {
useCallback,
useState,
Expand Down
2 changes: 1 addition & 1 deletion src/components/DrawerBody/DrawerBody.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import styles from '../Drawer/Drawer.module.css';
Expand Down
2 changes: 1 addition & 1 deletion src/components/DrawerFooter/DrawerFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/components/DrawerHeader/DrawerHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { MouseEventHandler, ReactNode } from 'react';
import React from 'react';
import Button from '../../components/Button';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dropdown/Dropdown.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BADGE } from '@geometricpanda/storybook-addon-badges';
import type { StoryObj, Meta } from '@storybook/react';
import { userEvent, within } from '@storybook/testing-library';
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';
import type { OptionsAlignType, VariantType } from './Dropdown';
import { Dropdown } from './Dropdown';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Listbox } from '@headlessui/react';
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactElement, ReactNode, ElementType } from 'react';
import React, { useContext } from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/components/DropdownButton/DropdownButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React, { forwardRef } from 'react';
import Icon from '../Icon';
Expand Down
2 changes: 1 addition & 1 deletion src/components/DropdownMenu/DropdownMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type {
ReactNode,
KeyboardEvent,
Expand Down
2 changes: 1 addition & 1 deletion src/components/DropdownMenuItem/DropdownMenuItem.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode, MouseEventHandler } from 'react';
import React, { useContext } from 'react';
import { DropdownMenuContext } from '../DropdownMenu';
Expand Down
2 changes: 1 addition & 1 deletion src/components/FieldNote/FieldNote.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import Icon from '../Icon';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Fieldset/Fieldset.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import FieldsetItems from '../FieldsetItems';
Expand Down
2 changes: 1 addition & 1 deletion src/components/FieldsetItems/FieldsetItems.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';
import React from 'react';
import styles from './FieldsetItems.module.css';
Expand Down
2 changes: 1 addition & 1 deletion src/components/FieldsetLegend/FieldsetLegend.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';
import styles from './FieldsetLegend.module.css';

Expand Down
2 changes: 1 addition & 1 deletion src/components/FiltersButton/FiltersButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React, { forwardRef } from 'react';
import Button, { type ButtonProps } from '../Button';
import type { VariantStatus } from '../ClickableStyle';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';
import Fieldset from '../Fieldset';
import FieldsetLegend from '../FieldsetLegend';
Expand Down
2 changes: 1 addition & 1 deletion src/components/FiltersDrawer/FiltersDrawer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactElement, ReactNode } from 'react';
import React, { useEffect, useId, useRef, useState } from 'react';
import Button from '../Button';
Expand Down
2 changes: 1 addition & 1 deletion src/components/FiltersPopover/FiltersPopover.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React, { type ReactNode, useEffect, useRef } from 'react';
import Button from '../Button';
import ButtonGroup from '../ButtonGroup';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Grid/Grid.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import GridItem from '../GridItem';
Expand Down
2 changes: 1 addition & 1 deletion src/components/GridItem/GridItem.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React from 'react';
import styles from './GridItem.module.css';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Heading/Heading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React, { forwardRef } from 'react';
import styles from './Heading.module.css';

Expand Down
2 changes: 1 addition & 1 deletion src/components/HorizontalStep/HorizontalStep.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';
import Icon from '../Icon';
import NumberIcon from '../NumberIcon';
Expand Down
2 changes: 1 addition & 1 deletion src/components/HorizontalStepper/HorizontalStepper.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';
import HorizontalStep from '../HorizontalStep';
import styles from './HorizontalStepper.module.css';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Hr/Hr.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import React from 'react';
import styles from './Hr.module.css';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import { clsx } from 'clsx';
import type { ReactNode, CSSProperties } from 'react';
import React from 'react';
import icons, { type IconName } from '../../icons/spritemap';
Expand Down
Loading