Skip to content

Commit

Permalink
update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Feb 23, 2024
1 parent 2950916 commit 9dd656e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/nthul/src/client/color-switch/color-switch.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { act, cleanup, fireEvent, render, renderHook, screen } from "@testing-library/react";
import { afterEach, describe, test } from "vitest";
import { useTheme } from "../../hooks/use-theme";
import { useTheme } from "../../hooks";
import { ColorSwitch } from "./color-switch";

describe("color-switch", () => {
Expand Down
2 changes: 1 addition & 1 deletion lib/nthul/src/client/color-switch/color-switch.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { useTheme } from "../../hooks/use-theme";
import { useTheme } from "../../hooks";

export interface ColorSwitchProps {
/** id of target element if you are applying theme only to specific container. Should be same as corresponding ThemeSwitcher, etc. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { act, cleanup, fireEvent, render, renderHook } from "@testing-library/react";
import { afterEach, beforeEach, describe, test } from "vitest";
import { useTheme } from "../../hooks/use-theme";
import { useTheme } from "../../hooks";
import { DEFAULT_ID } from "../../constants";
import { ServerTarget } from "../../server";
import { ThemeSwitcher } from "./theme-switcher";
Expand Down
1 change: 1 addition & 0 deletions lib/nthul/src/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./use-theme";
2 changes: 2 additions & 0 deletions lib/nthul/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";
// client component exports
export * from "./client";
// client side hooks
export * from "./hooks";

0 comments on commit 9dd656e

Please sign in to comment.