Skip to content

Commit

Permalink
fix: include activity title in send email (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonMao authored Jul 23, 2024
1 parent 2fcc54f commit 6684c89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions components/Group/detail/Contact/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ const Transition = forwardRef((props, ref) => {

function ContactButton({
user,
children,
title,
label,
activityTitle,
description,
descriptionPlaceholder,
isLoading,
Expand Down Expand Up @@ -99,6 +99,7 @@ function ContactButton({
from: me.email,
to: user.email,
subject: '【島島阿學】點開 Email,認識新夥伴',
activityTitle,
title: '你發起的揪團有人來信!',
text: message,
information: [me.email, contact],
Expand Down Expand Up @@ -129,7 +130,7 @@ function ContactButton({
alt="contact icon"
style={{ marginRight: '8px' }}
/>
{children || title}
{label}
</Button>
<Dialog
keepMounted
Expand Down Expand Up @@ -161,7 +162,7 @@ function ContactButton({
textAlign: 'center',
}}
>
{title}
{label}
</DialogTitle>
<IconButton
aria-label="close"
Expand Down
3 changes: 2 additions & 1 deletion components/Group/detail/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ function GroupDetail({ id, source, isLoading }) {
) : (
<ContactButton
user={source?.user || {}}
title="聯繫主揪"
activityTitle={source?.title}
label="聯繫主揪"
description="想跟主揪說的話"
descriptionPlaceholder="想參加主揪的團體嗎?可以簡單的自我介紹,寫下想加入的原因。"
/>
Expand Down

0 comments on commit 6684c89

Please sign in to comment.