From 1ef1b3174bba6ffaecf1e38da099c2d51da02ff3 Mon Sep 17 00:00:00 2001 From: Sasha Date: Thu, 26 Oct 2023 13:39:49 +0200 Subject: [PATCH] remove old page, rename to hooks --- .../rln-js/src/app/home/components/Header.tsx | 2 +- .../src/app/home/components/Keystore.tsx | 2 +- .../rln-js/src/app/home/components/Waku.tsx | 2 +- examples/rln-js/src/app/old/page.tsx | 113 ------------------ examples/rln-js/src/hooks/index.ts | 1 + .../src/{store/index.ts => hooks/useStore.ts} | 0 6 files changed, 4 insertions(+), 116 deletions(-) delete mode 100644 examples/rln-js/src/app/old/page.tsx create mode 100644 examples/rln-js/src/hooks/index.ts rename examples/rln-js/src/{store/index.ts => hooks/useStore.ts} (100%) diff --git a/examples/rln-js/src/app/home/components/Header.tsx b/examples/rln-js/src/app/home/components/Header.tsx index 9fbd95b..2742049 100644 --- a/examples/rln-js/src/app/home/components/Header.tsx +++ b/examples/rln-js/src/app/home/components/Header.tsx @@ -2,7 +2,7 @@ import { Block, BlockTypes } from "@/components/Block"; import { Title } from "@/components/Title"; import { Button } from "@/components/Button"; import { Status } from "@/components/Status"; -import { useStore } from "@/store"; +import { useStore } from "@/hooks"; export const Header: React.FunctionComponent<{}> = () => { const { appStatus } = useStore(); diff --git a/examples/rln-js/src/app/home/components/Keystore.tsx b/examples/rln-js/src/app/home/components/Keystore.tsx index 4d8000d..dd2841f 100644 --- a/examples/rln-js/src/app/home/components/Keystore.tsx +++ b/examples/rln-js/src/app/home/components/Keystore.tsx @@ -2,7 +2,7 @@ import { Block, BlockTypes } from "@/components/Block"; import { Button } from "@/components/Button"; import { Status } from "@/components/Status"; import { Subtitle } from "@/components/Subtitle"; -import { useStore } from "@/store"; +import { useStore } from "@/hooks"; export const Keystore: React.FunctionComponent<{}> = () => { const { keystoreStatus } = useStore(); diff --git a/examples/rln-js/src/app/home/components/Waku.tsx b/examples/rln-js/src/app/home/components/Waku.tsx index 13c4f58..98d4cd7 100644 --- a/examples/rln-js/src/app/home/components/Waku.tsx +++ b/examples/rln-js/src/app/home/components/Waku.tsx @@ -2,7 +2,7 @@ import { Block, BlockTypes } from "@/components/Block"; import { Subtitle } from "@/components/Subtitle"; import { Status } from "@/components/Status"; import { Button } from "@/components/Button"; -import { useStore } from "@/store"; +import { useStore } from "@/hooks"; export const Waku: React.FunctionComponent<{}> = () => { const { wakuStatus } = useStore(); diff --git a/examples/rln-js/src/app/old/page.tsx b/examples/rln-js/src/app/old/page.tsx deleted file mode 100644 index 8e9f3c5..0000000 --- a/examples/rln-js/src/app/old/page.tsx +++ /dev/null @@ -1,113 +0,0 @@ -import Image from "next/image"; - -export default function Home() { - return ( -
-
-

- Get started by editing  - src/app/page.tsx -

-
- - By{" "} - Vercel Logo - -
-
- -
- Next.js Logo -
- -
- -

- Docs{" "} - - -> - -

-

- Find in-depth information about Next.js features and API. -

-
- - -

- Learn{" "} - - -> - -

-

- Learn about Next.js in an interactive course with quizzes! -

-
- - -

- Templates{" "} - - -> - -

-

- Explore the Next.js 13 playground. -

-
- - -

- Deploy{" "} - - -> - -

-

- Instantly deploy your Next.js site to a shareable URL with Vercel. -

-
-
-
- ); -} diff --git a/examples/rln-js/src/hooks/index.ts b/examples/rln-js/src/hooks/index.ts new file mode 100644 index 0000000..16ef1a2 --- /dev/null +++ b/examples/rln-js/src/hooks/index.ts @@ -0,0 +1 @@ +export { useStore } from "./useStore"; diff --git a/examples/rln-js/src/store/index.ts b/examples/rln-js/src/hooks/useStore.ts similarity index 100% rename from examples/rln-js/src/store/index.ts rename to examples/rln-js/src/hooks/useStore.ts