forked from cerc-io/snowballtools-base
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:
commit
d7dc9a07f9
@ -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}
|
||||
/>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user