Skip to content

Commit

Permalink
fix: empty list lead ui freeze (#61)
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei authored Jun 14, 2024
1 parent 849ac83 commit 7698701
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/renderer/src/components/entry-column/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,14 +295,13 @@ const ListHeader: FC<{
}

const ListContent = forwardRef<HTMLDivElement>((props, ref) => (
<div
className="px-2"
{...props}
ref={ref}
/>
<div className="px-2" {...props} ref={ref} />
))

const EmptyList = (props, ref) => {
const EmptyList = forwardRef<
HTMLDivElement,
React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
>((props, ref) => {
const unreadOnly = useAtomValue(unreadOnlyAtom)

return (
Expand All @@ -324,4 +323,4 @@ const EmptyList = (props, ref) => {
)}
</div>
)
}
})

0 comments on commit 7698701

Please sign in to comment.