Skip to content

Muted icon in Mailist and MailDisplay#8

Merged
nizzyabi merged 1 commit intoMail-0:mainfrom
mnoebauer:main
Feb 5, 2025
Merged

Muted icon in Mailist and MailDisplay#8
nizzyabi merged 1 commit intoMail-0:mainfrom
mnoebauer:main

Conversation

@mnoebauer
Copy link
Contributor

  • added muted icon in the MailList
  • added functionality to the switch

@vercel
Copy link

vercel bot commented Feb 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mail ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 5, 2025 6:28pm

@mnoebauer
Copy link
Contributor Author

Should it be to the extend that it affects the mailist too or fine like this for now

@nizzyabi
Copy link
Collaborator

nizzyabi commented Feb 5, 2025

niceee this is gonna be very nice once functionality is added

@nizzyabi nizzyabi merged commit 63c5758 into Mail-0:main Feb 5, 2025
1 check passed
Copy link
Collaborator

@MrgSub MrgSub left a comment

Choose a reason for hiding this comment

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

LGTM, minor changes

const [isMuted, setIsMuted] = useState(mail ? mail.muted : false);

// Update the muted state when the mail prop changes.
useEffect(() => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

State not needed here, can use a variable & useMemo. If only for demo, it's fine

aria-label="Mute thread"
checked={isMuted}
onCheckedChange={(checked: boolean) =>
setIsMuted(checked)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Needs to go the backend, if only for demo it's fine

defaultLayout: number[] | undefined;
defaultCollapsed?: boolean;
navCollapsedSize: number;
muted?: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

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

muted: boolean | undefined to go with line 24

@coderabbitai coderabbitai bot mentioned this pull request Jun 3, 2025
34 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants