Hide Opportunities as nothing is built yet and make company table fully editable (#109)
* Hide Opportunities as nothing is built yet and make company table fully editable * Fix tests
This commit is contained in:
@ -2,7 +2,7 @@ import * as React from 'react';
|
||||
import styled from '@emotion/styled';
|
||||
import PersonPlaceholder from './person-placeholder.png';
|
||||
|
||||
type OwnProps = {
|
||||
export type PersonChipPropsType = {
|
||||
name: string;
|
||||
picture?: string;
|
||||
};
|
||||
@ -28,7 +28,7 @@ const StyledContainer = styled.span`
|
||||
}
|
||||
`;
|
||||
|
||||
function PersonChip({ name, picture }: OwnProps) {
|
||||
function PersonChip({ name, picture }: PersonChipPropsType) {
|
||||
return (
|
||||
<StyledContainer data-testid="person-chip">
|
||||
<img
|
||||
|
||||
@ -51,7 +51,7 @@ function EditableChip({
|
||||
}}
|
||||
/>
|
||||
}
|
||||
nonEditModeContent={<ChipComponent name={value} picture={picture} />}
|
||||
nonEditModeContent={<ChipComponent name={inputValue} picture={picture} />}
|
||||
></EditableCellWrapper>
|
||||
);
|
||||
}
|
||||
|
||||
@ -49,7 +49,7 @@ const StyledEditModeResultItem = styled.div`
|
||||
`;
|
||||
|
||||
export type EditableRelationProps<RelationType, ChipComponentPropsType> = {
|
||||
relation: RelationType;
|
||||
relation?: RelationType;
|
||||
searchPlaceholder: string;
|
||||
searchFilter: FilterType<People_Bool_Exp>;
|
||||
changeHandler: (relation: RelationType) => void;
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import styled from '@emotion/styled';
|
||||
import DropdownButton from './DropdownButton';
|
||||
import {
|
||||
FilterType,
|
||||
SelectedFilterType,
|
||||
@ -147,8 +146,6 @@ function TableHeader<SortField, FilterProperties>({
|
||||
availableSorts={availableSorts || []}
|
||||
onSortSelect={sortSelect}
|
||||
/>
|
||||
|
||||
<DropdownButton label="Settings" isActive={false}></DropdownButton>
|
||||
</StyledFilters>
|
||||
</StyledTableHeader>
|
||||
{sorts.length + filters.length > 0 && (
|
||||
|
||||
Reference in New Issue
Block a user