From 2835681e2a7ce02a4eb238ed1de547de58c45ffe Mon Sep 17 00:00:00 2001 From: gibbyb Date: Tue, 23 Jul 2024 13:21:19 -0500 Subject: [PATCH] Replace toggle with icon button so it is more clear what the toggle does without adding a label --- public/images/exit_fullscreen.png | Bin 0 -> 17653 bytes public/images/fullscreen.png | Bin 0 -> 17523 bytes src/components/auth/client/Sign_Out.tsx | 6 +----- src/components/ui/Header.tsx | 8 ++++---- src/components/ui/TV_Toggle.tsx | 20 ++++++++++++-------- 5 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 public/images/exit_fullscreen.png create mode 100644 public/images/fullscreen.png diff --git a/public/images/exit_fullscreen.png b/public/images/exit_fullscreen.png new file mode 100644 index 0000000000000000000000000000000000000000..032309c515a2a4291363e25b175c2247268c18a1 GIT binary patch literal 17653 zcmeHP2~<;88cqUX39^X0Y;hTDu_7X<2#6wynvS2@FNO0QENUw7_xp{0l@yAyO_(KwsUU+Fiews1Z2z7BVHd9`T!n+%8j z*=pOrH9a3zbgj!``AAKVpTo|*N-cJ<8{3k?8dj+HNjvSi<#pQ82~T2-n3tA@?&3L` zwESL5$!EJ)l}<{w)p$BLuW3e8aq=(LmkK%q_H$>OMKTt)Ij=J;j-Ztk1^@i?Md@GL z9-h51&FuNZJIkDPTs&g8SUNS#E-!R9nq|GQc*Mf?4e^{H`cW;PM~{X)uFU^!$0ps( zr=00y{_@e~2VV}W{l<6Imhz0Phnz;3dHUQK`q-DrOyE`6<*i^1bugfpC>v=i039x?*n_b%J~T;gCgJq6`o3$%u*A)}|Y1 zQ(iVjwdS1LGwze$Mm=^&x;X11bv&J!ve@BJ{S>5Tf*_LXNhjIP-~k-5C;_)LzanXbiyy(~}vvRr4C*R3IF&ofC7?uXKS+Gn&B3YLuo;7?H`{V zch!8vsfx4>o(C;mz5jV8thO$3a{bs-57s;znV5Bd-qM?edFQ`~-FG*@yQHvH-(`H# z#8y+)D5a6dXR^bi4`e^tuhT1OL|rr91J zbNW(+^IVgPvb66nYr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@ -26,5 +24,3 @@ export default function Sign_Out() { ); } }; - - // diff --git a/src/components/ui/Header.tsx b/src/components/ui/Header.tsx index 2ba9e55..a4829a6 100644 --- a/src/components/ui/Header.tsx +++ b/src/components/ui/Header.tsx @@ -8,11 +8,11 @@ export default function Header() { const { tvMode } = useTVMode(); if (tvMode) { return ( -
-
- < TV_Toggle /> -
+
+
+ < TV_Toggle />
+
); } else { return ( diff --git a/src/components/ui/TV_Toggle.tsx b/src/components/ui/TV_Toggle.tsx index 53b66ac..0c75a48 100644 --- a/src/components/ui/TV_Toggle.tsx +++ b/src/components/ui/TV_Toggle.tsx @@ -1,5 +1,5 @@ "use client"; -import { Switch } from "~/components/ui/shadcn/switch"; +import Image from "next/image"; import { useTVMode } from "~/components/context/TVModeContext"; import { useSession } from "next-auth/react"; @@ -8,12 +8,16 @@ export default function TV_Toggle() { const { data: session } = useSession(); if (!session) return
; return ( - + ); }