Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
toresbe committed Aug 11, 2023
1 parent 0be0701 commit ed8ae55
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions src/core/components/DevPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,16 @@ const DevPanelButtons = styled.div`
}
}
`
export const DevPanel = () => {
if (import.meta.env.PROD) return null

return (
<DevContainerDiv>
<div>
<h1>Frikanalen sendegrafikk</h1>
<Content />
<DevPanelButtons>
<h2>Events</h2>
<button onClick={window.play}>PLAY</button>
<button onClick={window.stop}>STOP</button>
</DevPanelButtons>
</div>
</DevContainerDiv>
)
}
export const DevPanel = () => (
<DevContainerDiv>
<div>
<h1>Frikanalen sendegrafikk</h1>
<Content />
<DevPanelButtons>
<h2>Events</h2>
<button onClick={window.play}>PLAY</button>
<button onClick={window.stop}>STOP</button>
</DevPanelButtons>
</div>
</DevContainerDiv>
)

0 comments on commit ed8ae55

Please sign in to comment.