Skip to content

Commit

Permalink
fix: imports in core components (#3511)
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno Henriques <zettca@users.noreply.github.com>
  • Loading branch information
zettca and zettca committed Jul 12, 2023
1 parent afacfb5 commit 1b7b4d9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/components/BreadCrumb/Page/Page.styles.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createClasses } from "@core/utils";
import { outlineStyles } from "@hitachivantara/uikit-react-core";
import { createClasses, outlineStyles } from "@core/utils";
import { theme } from "@hitachivantara/uikit-styles";

export const { staticClasses, useClasses } = createClasses("HvPage", {
Expand Down
9 changes: 5 additions & 4 deletions packages/core/src/components/Drawer/Drawer.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { css } from "@emotion/css";
import { Meta, StoryObj } from "@storybook/react";
import { useState } from "react";
import {
HvButton,
HvDialogActions,
HvDialogContent,
HvDialogTitle,
} from "@hitachivantara/uikit-react-core";
import { Meta, StoryObj } from "@storybook/react";
import { useState } from "react";
import { HvDrawer, HvDrawerProps } from "./Drawer";
HvDrawer,
HvDrawerProps,
} from "..";

const meta: Meta<typeof HvDrawer> = {
title: "widgets/Drawer",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/components/Drawer/Drawer.test.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import userEvent from "@testing-library/user-event";
import { render } from "@testing-library/react";
import { useState } from "react";
import { css } from "@emotion/css";
import {
HvButton,
HvDialogActions,
HvDialogContent,
HvDialogTitle,
} from "@hitachivantara/uikit-react-core";
import { useState } from "react";
import { css } from "@emotion/css";
} from "../..";
import { HvDrawer } from "./Drawer";

const Sample = ({ startingOpen }: { startingOpen: boolean }) => {
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/components/InlineEditor/InlineEditor.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useLayoutEffect, useRef, useState } from "react";
import { HvBaseProps } from "@core/types";
import { useControlled } from "@core/hooks";
import { useControlled, useTheme } from "@core/hooks";
import { ExtractNames, isKeypress, keyboardCodes } from "@core/utils";
import {
HvButtonProps,
Expand All @@ -12,7 +12,6 @@ import {
HvInputProps,
} from "@core/components";
import { Edit } from "@hitachivantara/uikit-react-icons";
import { useTheme } from "@hitachivantara/uikit-react-core";
import { staticClasses, useClasses } from "./InlineEditor.styles";

export { staticClasses as inlineEditorClasses };
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/TimeAgo/TimeAgo.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from "vitest";
import { render, screen } from "@testing-library/react";
import { HvButton } from "@hitachivantara/uikit-react-core";
import { HvButton } from "../..";
import { HvTimeAgo } from "./TimeAgo";

const EM_DASH = "—";
Expand Down

0 comments on commit 1b7b4d9

Please sign in to comment.