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) setTimeout(() => (inThrottle = false), limit)
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
lastResult = func.apply(this, ...args) 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 const activeToolSelector = (s: Data) => s.appState.activeTool
export function StatusBar(): JSX.Element | null { export function StatusBar(): JSX.Element | null {
const { tlstate, useSelector } = useTLDrawContext() const { useSelector } = useTLDrawContext()
const status = useSelector(statusSelector) const status = useSelector(statusSelector)
const activeTool = useSelector(activeToolSelector) const activeTool = useSelector(activeToolSelector)
return ( return (
<StatusBarContainer size={{ '@sm': 'small' }}> <StatusBarContainer size={{ '@sm': 'small' }}>
<Section> <Section>
{tlstate.id} | {activeTool} | {status} {activeTool} | {status}
</Section> </Section>
</StatusBarContainer> </StatusBarContainer>
) )