File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ export function EyeClosedIcon ( { className } : { className ?: string } ) {
2+ return (
3+ < svg
4+ className = { className }
5+ width = "24"
6+ height = "24"
7+ viewBox = "0 0 24 24"
8+ fill = "none"
9+ xmlns = "http://www.w3.org/2000/svg"
10+ >
11+ < path
12+ d = "M10.7424 5.08581C14.6841 4.54668 18.7922 6.54985 21.4978 11.0954C21.8296 11.6529 21.8298 12.3468 21.498 12.9043C21.124 13.5326 20.7233 14.1123 20.3 14.6434"
13+ stroke = "currentColor"
14+ strokeWidth = "2"
15+ strokeLinecap = "round"
16+ strokeLinejoin = "round"
17+ />
18+ < path
19+ d = "M3.70711 2.29289C3.31658 1.90237 2.68342 1.90237 2.29289 2.29289C1.90237 2.68342 1.90237 3.31658 2.29289 3.70711L3.70711 2.29289ZM20.2929 21.7071C20.6834 22.0976 21.3166 22.0976 21.7071 21.7071C22.0976 21.3166 22.0976 20.6834 21.7071 20.2929L20.2929 21.7071ZM2.29289 3.70711L20.2929 21.7071L21.7071 20.2929L3.70711 2.29289L2.29289 3.70711Z"
20+ fill = "currentColor"
21+ />
22+ < path
23+ d = "M10.3327 10.8948C10.6385 10.4349 10.5136 9.81416 10.0537 9.50837C9.59377 9.20259 8.97305 9.32753 8.66727 9.78743L10.3327 10.8948ZM14.2126 15.3328C14.6725 15.027 14.7974 14.4063 14.4916 13.9463C14.1858 13.4864 13.5651 13.3615 13.1052 13.6673L14.2126 15.3328ZM12 14C10.8954 14 10 13.1046 10 12H8C8 14.2092 9.79086 16 12 16V14ZM10 12C10 11.5897 10.1225 11.211 10.3327 10.8948L8.66727 9.78743C8.24565 10.4216 8 11.1836 8 12H10ZM13.1052 13.6673C12.789 13.8775 12.4103 14 12 14V16C12.8164 16 13.5785 15.7544 14.2126 15.3328L13.1052 13.6673Z"
24+ fill = "currentColor"
25+ />
26+ < path
27+ d = "M6.12815 7C4.77316 7.99438 3.53535 9.35957 2.50209 11.0955C2.17024 11.6531 2.17115 12.3487 2.50305 12.9062C6.05251 18.8681 12.0149 20.4553 16.8492 17.6681"
28+ stroke = "currentColor"
29+ strokeWidth = "2"
30+ strokeLinecap = "round"
31+ strokeLinejoin = "round"
32+ />
33+ </ svg >
34+ ) ;
35+ }
Original file line number Diff line number Diff line change 1+ export function EyeOpenIcon ( { className } : { className ?: string } ) {
2+ return (
3+ < svg
4+ className = { className }
5+ width = "24"
6+ height = "24"
7+ viewBox = "0 0 24 24"
8+ fill = "none"
9+ xmlns = "http://www.w3.org/2000/svg"
10+ >
11+ < path
12+ d = "M15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6569 9 15 10.3431 15 12Z"
13+ stroke = "currentColor"
14+ strokeWidth = "2"
15+ strokeLinecap = "round"
16+ strokeLinejoin = "round"
17+ />
18+ < path
19+ d = "M21.4974 11.0946C16.66 2.9684 7.33998 2.96849 2.50257 11.0947C2.17069 11.6523 2.17069 12.3479 2.50257 12.9054C7.33998 21.0316 16.66 21.0315 21.4974 12.9053C21.8293 12.3477 21.8293 11.6521 21.4974 11.0946Z"
20+ stroke = "currentColor"
21+ strokeWidth = "2"
22+ strokeLinecap = "round"
23+ strokeLinejoin = "round"
24+ />
25+ </ svg >
26+ ) ;
27+ }
Original file line number Diff line number Diff line change 11import { DialogClose } from "@radix-ui/react-dialog" ;
2- import { ArrowDownIcon , ArrowUpIcon , EyeIcon , EyeSlashIcon } from "@heroicons/react/20/solid" ;
2+ import { ArrowDownIcon , ArrowUpIcon } from "@heroicons/react/20/solid" ;
33import { GripVerticalIcon } from "lucide-react" ;
44import { useState } from "react" ;
55import ReactGridLayout , { type Layout , useContainerWidth } from "react-grid-layout" ;
66import { CrossIcon } from "~/assets/icons/CrossIcon" ;
7+ import { EyeClosedIcon } from "~/assets/icons/EyeClosedIcon" ;
8+ import { EyeOpenIcon } from "~/assets/icons/EyeOpenIcon" ;
79import { cn } from "~/utils/cn" ;
810import { Button } from "../primitives/Buttons" ;
911import { DialogContent , DialogFooter , DialogHeader } from "../primitives/Dialog" ;
@@ -456,7 +458,7 @@ function ModalItemRow({
456458 aria-pressed = { isHidden }
457459 className = "flex size-7 items-center justify-center rounded text-text-dimmed transition-colors hover:bg-surface-control hover:text-text-bright focus-custom"
458460 >
459- { isHidden ? < EyeSlashIcon className = "size-4" /> : < EyeIcon className = "size-4" /> }
461+ { isHidden ? < EyeClosedIcon className = "size-4" /> : < EyeOpenIcon className = "size-4" /> }
460462 </ button >
461463 { draggable ? (
462464 < div className = "customize-drag-handle flex size-7 cursor-grab items-center justify-center rounded text-text-dimmed transition-colors hover:text-text-bright active:cursor-grabbing" >
You can’t perform that action at this time.
0 commit comments