Skip to content

Commit

Permalink
chore: rename files (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Apr 26, 2023
1 parent 080f72a commit c569716
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/utils-react/src/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import React from "react";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { Compose } from "./compose";
import { Debug } from "./debug";
import { usePrevious, useStableRef } from "./misc";
import { toArraySetState, toDelayedSetState, toSetSetState } from "./set-state";
import { renderToJson } from "./test/helper";
import { usePrevious, useStableRef } from "./utils";

describe("Debug", () => {
it("basic", () => {
Expand Down
6 changes: 3 additions & 3 deletions packages/utils-react/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from "./debug";
export * from "./compose";
export * from "./misc";
export * from "./raf";
export * from "./utils";
export * from "./request-animation-frame";
export * from "./set-state";
export * from "./browser";
export * from "./match-media";
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { useRerender } from "./misc";
import { useRerender } from "./utils";

export function useMatchMedia(query: string) {
const result = React.useMemo(() => window.matchMedia(query), [query]);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { useStableRef } from "./misc";
import { useStableRef } from "./utils";

// cf. https://github.com/hi-ogawa/ytsub-v3/blob/859264f683e8d1c6331ca1c630101c037a78dd94/app/utils/hooks.ts#L6

Expand Down
File renamed without changes.

0 comments on commit c569716

Please sign in to comment.