-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New light mood toggle icon #1328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
6cc1399
87d31a0
086ac5f
ed3fe5e
c102b6c
c8a2216
2898073
96c004e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| "use client"; | ||
| import { Moon, Sun } from "lucide-react"; | ||
| import { useTheme } from "@/app/(org)/dashboard/Contexts"; | ||
|
|
||
| export const ThemeToggleIcon = () => { | ||
| const { theme } = useTheme(); | ||
|
|
||
| return ( | ||
| <span className="view-transition-theme-icon"> | ||
| {theme === "dark" ? ( | ||
| <Moon size={17} className="fill-white stroke-gray-3" /> | ||
| ) : ( | ||
| <Sun size={17} className="stroke-gray-12" /> | ||
| )} | ||
| </span> | ||
| ); | ||
| }; | ||
|
Comment on lines
+1
to
+17
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainFormat the file with Biome. As requested by @ameer2468 in the PR comments, please format this file with Biome to ensure consistency with the codebase standards. As per coding guidelines. Run the following command: 🏁 Script executed: pnpm formatLength of output: 273 🏁 Script executed: #!/bin/bash
# Check the actual indentation in the file
cat -A apps/web/components/theme-toggle-icon.tsxLength of output: 451 Format the file with Biome to convert tabs to 2-space indentation. The file currently uses tabs for indentation instead of the required 2-space indent. Run 🤖 Prompt for AI Agents |
||
Uh oh!
There was an error while loading. Please reload this page.