Skip to content

Commit

Permalink
fix: Hook render issue (#18950)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite authored Nov 29, 2023
1 parent 45f3caa commit 53beba6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/src/lib/lemon-ui/LemonBanner/LemonBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ export function LemonBanner({
const { dismiss } = useActions(logic)
const showCloseButton = dismissKey || onClose

const { ref: wrapperRef, size } = useResizeBreakpoints({
0: 'compact',
400: 'normal',
})

const _onClose = (): void => {
if (dismissKey) {
dismiss()
Expand All @@ -47,11 +52,6 @@ export function LemonBanner({
return <></>
}

const { ref: wrapperRef, size } = useResizeBreakpoints({
0: 'compact',
400: 'normal',
})

const isCompact = size === 'compact'

return (
Expand Down

0 comments on commit 53beba6

Please sign in to comment.