Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3804 use email visibility to display only the shared information frontend #3875

Conversation

bosiraphael
Copy link
Contributor

Closes #3804

Enregistrement.de.l.ecran.2024-02-07.a.16.50.12.mov

Copy link

github-actions bot commented Feb 7, 2024

TODOs/FIXMEs:

  • // TODO: Fix typing for visibility: packages/twenty-front/src/modules/activities/emails/components/EmailThreads.tsx

Generated by 🚫 dangerJS against 52c03f7

}) => css`
cursor: ${visibility === 'share_everything' ? 'pointer' : 'default'};
`;

const StyledCardContent = styled(CardContent)`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was more thinking about this pattern

const StyledCardContent = styled(CardContent)<{ visibility: string }>`
  align-items: center;
  display: flex;
  gap: ${({ theme }) => theme.spacing(2)};
  height: ${({ theme }) => theme.spacing(12)};
  padding: ${({ theme }) => theme.spacing(0, 4)};
  cursor: ${({ visibility }) =>
    visibility === 'share_everything' ? 'pointer' : 'default'};
`;

You can ignore if it's not used this way in the rest of the repo but it was my assumption
@bosiraphael

Copy link
Member

@Weiko Weiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Weiko Weiko merged commit 2ba9a20 into main Feb 8, 2024
13 checks passed
@Weiko Weiko deleted the 3804-use-email-visibility-to-display-only-the-shared-information-frontend branch February 8, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use email visibility to display only the shared information (frontend)
2 participants