Minor fixes
This commit is contained in:
parent
fb2c5088a9
commit
220d8aebda
2 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue