Import company and person from csv file (#1236)
* feat: wip implement back-end call csv import * fix: rebase IconBrandTwitter missing * feat: person and company csv import * fix: test & clean * fix: clean & test
This commit is contained in:
@ -26,6 +26,7 @@ type OwnProps<SortField> = {
|
||||
onColumnsChange?: (columns: ViewFieldDefinition<ViewFieldMetadata>[]) => void;
|
||||
onSortsUpdate?: (sorts: Array<SelectedSortType<SortField>>) => void;
|
||||
onViewsChange?: (views: TableView[]) => void;
|
||||
onImport?: () => void;
|
||||
};
|
||||
|
||||
export function TableHeader<SortField>({
|
||||
@ -34,6 +35,7 @@ export function TableHeader<SortField>({
|
||||
onColumnsChange,
|
||||
onSortsUpdate,
|
||||
onViewsChange,
|
||||
onImport,
|
||||
}: OwnProps<SortField>) {
|
||||
const [sorts, setSorts] = useRecoilScopedState<SelectedSortType<SortField>[]>(
|
||||
sortScopedState,
|
||||
@ -82,6 +84,7 @@ export function TableHeader<SortField>({
|
||||
isPrimaryButton
|
||||
/>
|
||||
<TableOptionsDropdownButton
|
||||
onImport={onImport}
|
||||
onColumnsChange={onColumnsChange}
|
||||
onViewsChange={onViewsChange}
|
||||
HotkeyScope={TableOptionsHotkeyScope.Dropdown}
|
||||
|
||||
Reference in New Issue
Block a user