8000 feat: create dynamic parameter component by jaaydenh · Pull Request #17351 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: create dynamic parameter component #17351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Apr 16, 2025
Merged
Prev Previous commit
Next Next commit
fix: use options instead of defaultOptions to set option values
  • Loading branch information
jaaydenh committed Apr 12, 2025
commit 25c7d3cb64be6f1b1a3110b95afaa07e585312c0
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const meta: Meta<typeof MultiSelectCombobox> = {
All organizations selected
</p>
),
defaultOptions: organizations.map((org) => ({
options: organizations.map((org) => ({
label: org.display_name,
value: org.id,
})),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export const IdpOrgSyncPageView: FC<IdpSyncPageViewProps> = ({
className="min-w-60 max-w-3xl"
value={coderOrgs}
onChange={setCoderOrgs}
defaultOptions={organizations.map((org) => ({
options={organizations.map((org) => ({
label: org.display_name,
value: org.id,
}))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export const IdpGroupSyncForm: FC<IdpGroupSyncFormProps> = ({
className="min-w-60 max-w-3xl"
value={coderGroups}
onChange={setCoderGroups}
defaultOptions={groups.map((group) => ({
options={groups.map((group) => ({
label: group.display_name || group.name,
value: group.id,
}))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export const IdpRoleSyncForm: FC<IdpRoleSyncFormProps> = ({
className="min-w-60 max-w-3xl"
value={coderRoles}
onChange={setCoderRoles}
defaultOptions={roles.map((role) => ({
options={roles.map((role) => ({
label: role.display_name || role.name,
value: role.name,
}))}
Expand Down
Loading
0