Fixed checkbox function on share modal

This commit is contained in:
Lucas Oliveira 2023-11-21 16:20:40 -03:00
commit 82b84dd7d5

View file

@ -132,13 +132,13 @@ export default function ShareModal({
</div> </div>
<div className="mt-5 flex items-center space-x-2"> <div className="mt-5 flex items-center space-x-2">
<Checkbox <Checkbox
id="terms" id="public"
checked={sharePublic} checked={sharePublic}
onCheckedChange={(event: boolean) => { onCheckedChange={(event: boolean) => {
setSharePublic(event); setSharePublic(event);
}} }}
/> />
<label htmlFor="terms" className="export-modal-save-api text-sm "> <label htmlFor="public" className="export-modal-save-api text-sm ">
Make {nameComponent} Public Make {nameComponent} Public
</label> </label>
</div> </div>