Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyphilemon committed Dec 18, 2024
1 parent fae51b4 commit 2d2bc46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/console.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function Console({ consoleOutputs, setConsoleOutputs }: ConsoleProps) {
className="h-2 w-full fixed cursor-ns-resize z-50"
onMouseDown={startResizing}
style={{ bottom: height - 4 }}
role="separator"
/>

<div
Expand Down
2 changes: 2 additions & 0 deletions components/document-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ const PureHitboxLayer = ({
className="size-full absolute top-0 left-0 rounded-xl z-10"
ref={hitboxRef}
onClick={handleClick}
role="presentation"
aria-hidden="true"
/>
);
};
Expand Down
4 changes: 2 additions & 2 deletions hooks/use-block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ export function useBlock() {
const setBlock = useCallback(
(updaterFn: UIBlock | ((currentBlock: UIBlock) => UIBlock)) => {
setLocalBlock((currentBlock) => {
if (!currentBlock) currentBlock = initialBlockData;
const blockToUpdate = currentBlock || initialBlockData;

if (typeof updaterFn === 'function') {
return updaterFn(currentBlock);
return updaterFn(blockToUpdate);
}

return updaterFn;
Expand Down

0 comments on commit 2d2bc46

Please sign in to comment.