Fix linter and remove console logs

This commit is contained in:
Charles Bochet
2023-11-20 16:54:51 +01:00
parent 189586830e
commit 0ace17df82
16 changed files with 57 additions and 109 deletions

View File

@ -1,34 +0,0 @@
type ChipDisplayProps = {
displayName: string;
entityId: string | null;
avatarUrlValue?: string;
};
export const ChipDisplay = ({
displayName,
entityId,
avatarUrlValue,
}: ChipDisplayProps) => {
switch (true) {
// case Entity.Company: {
// return (
// <CompanyChip
// id={entityId ?? ''}
// name={displayName}
// avatarUrl={getLogoUrlFromDomainName(avatarUrlValue)}
// />
// );
// }
// case Entity.Person: {
// return (
// <PersonChip
// id={entityId ?? ''}
// name={displayName}
// avatarUrl={avatarUrlValue}
// />
// );
// }
default:
return <> </>;
}
};

View File

@ -22,9 +22,11 @@ export const RecordTableBody = () => {
const { scopeId: objectNamePlural } = useRecordTable();
const { objectMetadataItem: foundObjectMetadataItem } = useObjectMetadataItem({
objectNamePlural,
});
const { objectMetadataItem: foundObjectMetadataItem } = useObjectMetadataItem(
{
objectNamePlural,
},
);
const [isFetchingMoreObjects] = useRecoilState(
isFetchingMoreObjectsFamilyState(foundObjectMetadataItem?.namePlural),