Skip to content

Sweep: move "New Message" button from the mailbox/page.tsx to members/page.tsx next to the "Add Member" button #38

@alanagoyal

Description

@alanagoyal

move "New Message" button from the mailbox/page.tsx to members/page.tsx next to the "Add Member" button

Checklist
  • app/mailbox/page.tsx

• Remove the "New Message" button code from the file. This includes the Dialog component that wraps the EmailComposer component and the handleNewMessageClick and handleSend functions.

  • app/members/page.tsx

• Identify the location where the "Add Member" button is implemented.
• Add the "New Message" button next to the "Add Member" button. This includes adding the Dialog component that wraps the EmailComposer component and the handleNewMessageClick and handleSend functions.
• Import necessary components and hooks from 'react', '@supabase/auth-helpers-nextjs', and '@/components/email-composer'.
• Add useState hook for isTiptapOpen state.
• Ensure the userEmail prop passed to the EmailComposer component is correctly set to the user's email.

Metadata

Metadata

Assignees

No one assigned

    Labels

    sweepAssigns Sweep to an issue or pull request.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions