Skip to content

Commit

Permalink
Checkbox fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
aibiansari committed Aug 19, 2024
1 parent d15fcac commit 792f39e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const App = () => {

const handleShowAlert = () => {
setShowAlert(!showAlert);
setCheckbox(false);
};

const handleClearHistory = () => {
Expand Down Expand Up @@ -181,7 +182,8 @@ const App = () => {
</p>
<div className="flex items-center justify-start gap-1.5">
<Checkbox
onCheckedChange={() => setCheckbox(true)}
checked={checkbox}
onCheckedChange={() => setCheckbox(!checkbox)}
/>
<label className="text-black -translate-y-[1px]">
Don't show this again
Expand Down Expand Up @@ -254,7 +256,8 @@ const App = () => {
</p>
<div className="flex items-center justify-start gap-1.5">
<Checkbox
onCheckedChange={() => setCheckbox(true)}
checked={checkbox}
onCheckedChange={() => setCheckbox(!checkbox)}
/>
<label className="text-black -translate-y-[1px]">
Don't show this again
Expand Down Expand Up @@ -295,7 +298,3 @@ const App = () => {
};

export default App;

//Settings Cog
//Settings: clear history, about
//Update README

0 comments on commit 792f39e

Please sign in to comment.