Remove buttons for activity empty state (#8999)

Before:
<img width="482" alt="Capture d’écran 2024-12-10 à 11 17 53"
src="https://github.com/user-attachments/assets/3641e902-10b9-4fbf-8383-d6e5d5b2de79">

After:
<img width="453" alt="Capture d’écran 2024-12-10 à 11 33 01"
src="https://github.com/user-attachments/assets/9f949933-0740-4c91-abf3-2c1817a68968">
This commit is contained in:
Raphaël Bosi
2024-12-10 12:09:40 +01:00
committed by GitHub
parent c553361f25
commit f0dbeea704
4 changed files with 6 additions and 58 deletions

View File

@ -40,11 +40,8 @@ type CardComponentProps = {
type CardComponentType = (props: CardComponentProps) => JSX.Element | null;
export const CardComponents: Record<CardType, CardComponentType> = {
[CardType.TimelineCard]: ({ targetableObject, isInRightDrawer }) => (
<TimelineActivities
targetableObject={targetableObject}
isInRightDrawer={isInRightDrawer}
/>
[CardType.TimelineCard]: ({ targetableObject }) => (
<TimelineActivities targetableObject={targetableObject} />
),
[CardType.FieldCard]: ({ targetableObject, isInRightDrawer }) => (