mirror of
https://github.com/ibelick/ui-skills.git
synced 2026-09-14 18:43:13 +08:00
fix: ts/astro warnings
This commit is contained in:
@@ -140,12 +140,13 @@ const commandItems = await Promise.all(
|
||||
{
|
||||
structuredData ? (
|
||||
<script
|
||||
is:inline
|
||||
type="application/ld+json"
|
||||
set:html={JSON.stringify(structuredData)}
|
||||
/>
|
||||
) : null
|
||||
}
|
||||
<script defer src="https://assets.onedollarstats.com/stonks.js"></script>
|
||||
<script is:inline defer src="https://assets.onedollarstats.com/stonks.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<a
|
||||
|
||||
@@ -143,7 +143,7 @@ export function CommandDialog({ items }: CommandDialogProps) {
|
||||
|
||||
useEffect(() => {
|
||||
const onKeyDown = (event: KeyboardEvent) => {
|
||||
const isMac = navigator.platform.toLowerCase().includes("mac");
|
||||
const isMac = /Mac|iPhone|iPad|iPod/i.test(navigator.userAgent);
|
||||
const isOpenHotkey = isMac
|
||||
? event.metaKey && event.key.toLowerCase() === "k"
|
||||
: event.ctrlKey && event.key.toLowerCase() === "k";
|
||||
|
||||
@@ -59,7 +59,7 @@ export function TextMorph({
|
||||
};
|
||||
|
||||
return (
|
||||
<Tag aria-label={children} style={style as React.CSSProperties}>
|
||||
<Tag aria-label={children} className={className} style={style as React.CSSProperties}>
|
||||
<AnimatePresence mode="popLayout" initial={false}>
|
||||
{characters.map((character) => (
|
||||
<motion.span
|
||||
|
||||
Reference in New Issue
Block a user