Skip to content

Commit 4472213

Browse files
committed
thanks typescript
1 parent 6424aa3 commit 4472213

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

site/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
media="(prefers-color-scheme: light)"
5858
data-react-helmet="true"
5959
/>
60+
<link rel="stylesheet" href="./src/index.css" />
6061
</head>
6162

6263
<body>

site/src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import "./theme/globalFonts";
21
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
32
import {
43
type FC,

site/src/components/MultiSelectCombobox/MultiSelectCombobox.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ export const MultiSelectCombobox = forwardRef<
496496
<Badge
497497
key={option.value}
498498
className={cn(
499-
"data-disabled:bg-content-disabled data-[disabled]:text-surface-tertiarydata-[disabled]:hover:bg-content-disabled",
499+
"data-disabled:bg-content-disabled data-disabled:text-surface-tertiary data-disabled:hover:bg-content-disabled",
500500
"data-fixed:bg-content-disabled data-fixed:text-surface-tertiary data-fixed:hover:bg-surface-secondary",
501501
badgeClassName,
502502
)}
@@ -594,7 +594,7 @@ export const MultiSelectCombobox = forwardRef<
594594
disabled ||
595595
selected.length < 1 ||
596596
fixedOptions.length === selected.length) &&
597-
"hidden",
597+
"hidden",
598598
)}
599599
>
600600
<X className="h-5 w-5" />
@@ -661,7 +661,7 @@ export const MultiSelectCombobox = forwardRef<
661661
className={cn(
662662
"cursor-pointer",
663663
option.disable &&
664-
"cursor-default text-content-disabled",
664+
"cursor-default text-content-disabled",
665665
)}
666666
>
667667
<div className="flex items-center gap-2">

site/src/components/deprecated/Popover/Popover.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ export const Popover: FC<PopoverProps> = (props) => {
7373
// component, but this is basically the most we can do from here
7474
useEffect(() => {
7575
const closeOnTabSwitch = () => setUncontrolledOpen(false);
76-
window.addEventListener("blur-sm", closeOnTabSwitch);
77-
return () => window.removeEventListener("blur-sm", closeOnTabSwitch);
76+
window.addEventListener("blur", closeOnTabSwitch);
77+
return () => window.removeEventListener("blur", closeOnTabSwitch);
7878
}, []);
7979

8080
const value: PopoverContextValue = {
@@ -109,8 +109,8 @@ type PopoverTriggerRenderProps = Readonly<{
109109
type PopoverTriggerProps = Readonly<
110110
Omit<HTMLAttributes<HTMLElement>, "children"> & {
111111
children:
112-
| TriggerElement
113-
| ((props: PopoverTriggerRenderProps) => TriggerElement);
112+
| TriggerElement
113+
| ((props: PopoverTriggerRenderProps) => TriggerElement);
114114
}
115115
>;
116116

site/src/contexts/ThemeProvider.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ export const ThemeProvider: FC<PropsWithChildren> = ({ children }) => {
5656
// We might not be logged in yet, or the `theme_preference` could be an empty string.
5757
const themePreference =
5858
appearanceSettingsQuery.data?.theme_preference || DEFAULT_THEME;
59-
// The janky casting here is find because of the much more type safe fallback
60-
// We need to support `themePreference` being wrong anyway because the database
61-
// value could be anything, like an empty string.
6259

6360
useEffect(() => {
6461
const root = document.documentElement;
@@ -73,6 +70,9 @@ export const ThemeProvider: FC<PropsWithChildren> = ({ children }) => {
7370
};
7471
}, [themePreference, preferredColorScheme]);
7572

73+
// The janky casting here is fine because of the much more type safe fallback
74+
// We need to support `themePreference` being wrong anyway because the
75+
// database value could be anything, like an empty string.
7676
const theme =
7777
themes[themePreference as keyof typeof themes] ??
7878
themes[preferredColorScheme];

site/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import "./theme/globalFonts";
12
import { createRoot } from "react-dom/client";
2-
import "./index.css";
33
import { App } from "./App";
44

55
console.info(` -####### +######- ########+ ########## ########+. ###########

site/src/modules/apps/useAppLink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const useAppLink = (
7171
displayError(`${label} must be installed first.`);
7272
}
7373
}, openAppExternallyFailedTimeout);
74-
window.addEventListener("blur-sm", () => {
74+
window.addEventListener("blur", () => {
7575
clearTimeout(openAppExternallyFailed);
7676
});
7777

0 commit comments

Comments
 (0)