generated from Klectr/KTemplate
feat(text): memo infinite canvas so the toasty isnt constantly updating it
This commit is contained in:
parent
0cc0d388b4
commit
f497bfda08
@ -1,3 +1,4 @@
|
|||||||
|
import { memo } from "kaioken"
|
||||||
import InfiniteCanvas from "./components/InfinateCanvas"
|
import InfiniteCanvas from "./components/InfinateCanvas"
|
||||||
import { ToastContextProvider } from "./components/Toast"
|
import { ToastContextProvider } from "./components/Toast"
|
||||||
import { useThemeDetector } from "./utils/useThemeDetector"
|
import { useThemeDetector } from "./utils/useThemeDetector"
|
||||||
@ -7,7 +8,9 @@ export function App() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ToastContextProvider>
|
<ToastContextProvider>
|
||||||
<InfiniteCanvas />
|
<MemoInfyCanvas />
|
||||||
</ToastContextProvider>
|
</ToastContextProvider>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const MemoInfyCanvas = memo(InfiniteCanvas)
|
||||||
|
@ -8,7 +8,6 @@ import images from "../signals/images"
|
|||||||
import { CardSelector } from "./cardSelector/CardSelector"
|
import { CardSelector } from "./cardSelector/CardSelector"
|
||||||
import { Logo } from "./Logo"
|
import { Logo } from "./Logo"
|
||||||
import { useThemeDetector } from "../utils/useThemeDetector"
|
import { useThemeDetector } from "../utils/useThemeDetector"
|
||||||
import { isTheme } from "../utils/isTheme"
|
|
||||||
import { TextItem } from "./TextItem"
|
import { TextItem } from "./TextItem"
|
||||||
import texts from "../signals/texts"
|
import texts from "../signals/texts"
|
||||||
|
|
||||||
|
@ -11,9 +11,10 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
:focus {
|
}
|
||||||
outline: none;
|
|
||||||
}
|
*:focus {
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
Loading…
Reference in New Issue
Block a user