@@ -38,63 +38,65 @@ export const GuideRow = ({ guide, orderIndex }: Props) => {
3838 </ GuideHoverCard >
3939 </ Stack >
4040
41- < Stack gap = "1" >
42- { guide . __typename === "Guide" && (
43- < >
44- < Tooltip
45- label = {
46- guide . inspection . targetable . status
47- ? "This user is targeted"
48- : guide . inspection . targetable . message
49- }
50- // enabled={!guide.inspection.targetable.status}
51- >
52- < Button
53- px = "1"
54- size = "1"
55- variant = "soft"
56- color = { guide . inspection . targetable . status ? "green" : "red" }
57- leadingIcon = { { icon : UserCircle2 , alt : "Target" } }
58- />
59- </ Tooltip >
60- < Tooltip
61- label = {
62- guide . inspection . archived . status
63- ? "User has already archived this guide"
64- : "User has not dismissed this guide"
65- }
66- >
67- < Button
68- px = "1"
69- size = "1"
70- variant = "soft"
71- color = { guide . inspection . archived . status ? "red" : "green" }
72- leadingIcon = { { icon : Eye , alt : "Not archived" } }
73- />
74- </ Tooltip >
75- </ >
76- ) }
77- < Tooltip
78- label = {
79- guide . __typename === "MissingGuide"
80- ? "This guide has never been committed and published yet"
81- : ! guide . active
82- ? "This guide is not active"
83- : "This guide is active"
84- }
85- >
86- < Button
87- px = "1"
88- size = "1"
89- variant = "soft"
90- color = { guide . active ? "green" : "red" }
91- leadingIcon = {
92- guide . active
93- ? { icon : CheckCircle2 , alt : "Active" }
94- : { icon : CircleDashed , alt : "Inactive" }
41+ < Stack justify = "flex-end" >
42+ < Stack gap = "1" >
43+ { guide . __typename === "Guide" && (
44+ < >
45+ < Tooltip
46+ label = {
47+ guide . inspection . targetable . status
48+ ? "This user is targeted"
49+ : guide . inspection . targetable . message
50+ }
51+ // enabled={!guide.inspection.targetable.status}
52+ >
53+ < Button
54+ px = "1"
55+ size = "1"
56+ variant = "soft"
57+ color = { guide . inspection . targetable . status ? "green" : "red" }
58+ leadingIcon = { { icon : UserCircle2 , alt : "Target" } }
59+ />
60+ </ Tooltip >
61+ < Tooltip
62+ label = {
63+ guide . inspection . archived . status
64+ ? "User has already archived this guide"
65+ : "User has not dismissed this guide"
66+ }
67+ >
68+ < Button
69+ px = "1"
70+ size = "1"
71+ variant = "soft"
72+ color = { guide . inspection . archived . status ? "red" : "green" }
73+ leadingIcon = { { icon : Eye , alt : "Not archived" } }
74+ />
75+ </ Tooltip >
76+ </ >
77+ ) }
78+ < Tooltip
79+ label = {
80+ guide . __typename === "MissingGuide"
81+ ? "This guide has never been committed and published yet"
82+ : ! guide . active
83+ ? "This guide is not active"
84+ : "This guide is active"
9585 }
96- />
97- </ Tooltip >
86+ >
87+ < Button
88+ px = "1"
89+ size = "1"
90+ variant = "soft"
91+ color = { guide . active ? "green" : "red" }
92+ leadingIcon = {
93+ guide . active
94+ ? { icon : CheckCircle2 , alt : "Active" }
95+ : { icon : CircleDashed , alt : "Inactive" }
96+ }
97+ />
98+ </ Tooltip >
99+ </ Stack >
98100 </ Stack >
99101 </ Row >
100102 ) ;
0 commit comments