Minor fixes

This commit is contained in:
Steve Ruiz 2021-09-08 11:58:24 +01:00
parent fb2c5088a9
commit 220d8aebda
2 changed files with 4 additions and 2 deletions

View file

@ -1700,6 +1700,8 @@ left past the initial left edge) then swap points on that axis.
setTimeout(() => (inThrottle = false), limit)
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
lastResult = func.apply(this, ...args)
}

View file

@ -7,14 +7,14 @@ const statusSelector = (s: Data) => s.appState.status.current
const activeToolSelector = (s: Data) => s.appState.activeTool
export function StatusBar(): JSX.Element | null {
const { tlstate, useSelector } = useTLDrawContext()
const { useSelector } = useTLDrawContext()
const status = useSelector(statusSelector)
const activeTool = useSelector(activeToolSelector)
return (
<StatusBarContainer size={{ '@sm': 'small' }}>
<Section>
{tlstate.id} | {activeTool} | {status}
{activeTool} | {status}
</Section>
</StatusBarContainer>
)