Skip to content

Commit

Permalink
fixed lint issues for TODO button
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Lu committed Aug 9, 2024
1 parent d92e650 commit 135c863
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pages/hack-school/toggle_component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ const ToggleCodeBlock = ({ children }) => {
return (
<div>
<button
type="button"
onClick={toggleVisibility}
style={{
backgroundColor: 'blue',
}}
>
{isVisible ? 'Hide Code' : 'Show Code'}
</button>
{isVisible && (
<code>{children}</code>
)}
{isVisible && <code>{children}</code>}
</div>
);
};
Expand Down

0 comments on commit 135c863

Please sign in to comment.