diff --git a/ui/app/mirrors/create/tablemapping.tsx b/ui/app/mirrors/create/tablemapping.tsx index 6ee40aaf22..44793b7636 100644 --- a/ui/app/mirrors/create/tablemapping.tsx +++ b/ui/app/mirrors/create/tablemapping.tsx @@ -4,7 +4,6 @@ import { DBType, dBTypeToJSON } from '@/grpc_generated/peers'; import { Label } from '@/lib/Label'; import { RowWithSelect, RowWithTextField } from '@/lib/Layout'; import { SearchField } from '@/lib/SearchField'; -import { Select, SelectItem } from '@/lib/Select'; import { Switch } from '@/lib/Switch'; import { TextField } from '@/lib/TextField'; import { @@ -14,6 +13,7 @@ import { useEffect, useState, } from 'react'; +import ReactSelect from 'react-select'; import { BarLoader } from 'react-spinners/'; import { TableMapRow } from '../../dto/MirrorsDTO'; import ColumnsDisplay from './columns'; @@ -157,26 +157,20 @@ const TableMapping = ({ Source Schema} action={ - + defaultInputValue={schema.length > 0 ? schema : 'Loading...'} + isLoading={loading} + options={allSchemas?.map((schemaName) => { + return { value: schemaName, label: schemaName }; + })} + /> } />