mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-18 11:44:23 +01:00
perf: use UIAppState where possible to reduce UI rerenders (#6560)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import clsx from "clsx";
|
||||
import { useExcalidrawAppState } from "../App";
|
||||
import { useTunnels } from "../../context/tunnels";
|
||||
import "./FooterCenter.scss";
|
||||
import { useUIAppState } from "../../context/ui-appState";
|
||||
|
||||
const FooterCenter = ({ children }: { children?: React.ReactNode }) => {
|
||||
const { FooterCenterTunnel } = useTunnels();
|
||||
const appState = useExcalidrawAppState();
|
||||
const appState = useUIAppState();
|
||||
return (
|
||||
<FooterCenterTunnel.In>
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user