diff --git a/frontend/src/components/config/util.tsx b/frontend/src/components/config/util.tsx index 88ae1ee1c..08e339f04 100644 --- a/frontend/src/components/config/util.tsx +++ b/frontend/src/components/config/util.tsx @@ -6,6 +6,7 @@ import { SelectValue, SelectContent, SelectItem, + SelectGroup, } from "@ui/select"; import { Button } from "@ui/button"; import { Input } from "@ui/input"; @@ -122,14 +123,16 @@ export const ResourceSelector = ({ return ( ); diff --git a/frontend/src/resources/build/components/config.tsx b/frontend/src/resources/build/components/config.tsx index a727996cf..5f91e52db 100644 --- a/frontend/src/resources/build/components/config.tsx +++ b/frontend/src/resources/build/components/config.tsx @@ -14,23 +14,25 @@ import { } from "@ui/select"; import { useState } from "react"; -export const GithubAccountSelector = ({ +export const AccountSelector = ({ + type, selected, onSelect, }: { + type: keyof Types.GetAvailableAccountsResponse; selected: string | undefined; onSelect: (id: string) => void; }) => { - const accpunts = useRead("GetAvailableAccounts", {}).data; + const accounts = useRead("GetAvailableAccounts", {}).data; return (
-
Github Account
+
{type} Account