Skip to content

Commit c248d6b

Browse files
committed
chore: convert AppLink to tailwind
1 parent 7a7bb46 commit c248d6b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

site/src/modules/resources/AppLink/AppLink.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { useTheme } from "@emotion/react";
21
import type * as TypesGen from "api/typesGenerated";
32
import { DropdownMenuItem } from "components/DropdownMenu/DropdownMenu";
43
import { Spinner } from "components/Spinner/Spinner";
@@ -41,7 +40,6 @@ export const AppLink: FC<AppLinkProps> = ({
4140
const { proxy } = useProxy();
4241
const host = proxy.preferredWildcardHostname;
4342
const [iconError, setIconError] = useState(false);
44-
const theme = useTheme();
4543
const link = useAppLink(app, { agent, workspace });
4644

4745
// canClick is ONLY false when it's a subdomain app and the admin hasn't
@@ -64,8 +62,7 @@ export const AppLink: FC<AppLinkProps> = ({
6462
icon = (
6563
<CircleAlertIcon
6664
aria-hidden="true"
67-
className="size-icon-sm"
68-
css={{ color: theme.palette.warning.light }}
65+
className="size-icon-sm text-content-warning"
6966
/>
7067
);
7168
primaryTooltip = "Unhealthy";
@@ -76,8 +73,7 @@ export const AppLink: FC<AppLinkProps> = ({
7673
icon = (
7774
<CircleAlertIcon
7875
aria-hidden="true"
79-
className="size-icon-sm"
80-
css={{ color: theme.palette.grey[300] }}
76+
className="size-icon-sm text-content-secondary"
8177
/>
8278
);
8379
primaryTooltip =

0 commit comments

Comments
 (0)