From ed547464c1b46c6047db6d1e4f88fecd6f8e1e60 Mon Sep 17 00:00:00 2001 From: ngc2207 Date: Mon, 9 Dec 2024 16:49:00 +0800 Subject: [PATCH] docs: add source attribution for ModeSwitcher and ThemeProvider implementations --- src/components/mode-switcher.tsx | 3 +++ src/components/theme-provider.tsx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/components/mode-switcher.tsx b/src/components/mode-switcher.tsx index 30a5119..62034e0 100644 --- a/src/components/mode-switcher.tsx +++ b/src/components/mode-switcher.tsx @@ -1,3 +1,6 @@ +// This implementation is derived from the solution provided by [shadcn] in shadcn/ui +// https://github.com/shadcn-ui/ui + "use client"; import * as React from "react"; diff --git a/src/components/theme-provider.tsx b/src/components/theme-provider.tsx index 189a2b1..4855a19 100644 --- a/src/components/theme-provider.tsx +++ b/src/components/theme-provider.tsx @@ -1,3 +1,6 @@ +// This implementation is derived from the solution provided by [shadcn] in shadcn/ui +// https://github.com/shadcn-ui/ui + "use client"; import * as React from "react";