checkbox should always be disabled (#2)

### TL;DR

This change removes unused properties from a checkbox component in the `org-slug/projects/create/template` file.

### What changed?

The `value` and `onChange` properties were deleted from the checkbox that determines whether a repo is private or not. It's important to note that this checkbox is currently disabled.

### How to test?

Try to create a new project and check that there aren't any errors or behavior changes when dealing with the 'Make this repo private' checkbox.

### Why make this change?

This change enhances code readability and ensures we're not keeping unnecessary code. It does not affect functionality as the checkbox is currently disabled.
This commit is contained in:
Vivian Phung 2024-05-01 18:33:58 -04:00 committed by GitHub
commit d7dc9a07f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,11 +189,9 @@ const CreateRepo = () => {
<Controller
name="isPrivate"
control={control}
render={({ field: { value, onChange } }) => (
render={({ }) => (
<Checkbox
label="Make this repo private"
checked={value}
onCheckedChange={onChange}
disabled={true}
/>
)}