mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-20 03:14:06 -06:00
feat:ReplyByEmail button
fix formatting
This commit is contained in:
parent
5a74a17d9b
commit
593f8b0aed
@ -41,11 +41,11 @@ const ReplyByEmail: QuartzComponent = ({
|
|||||||
if (shouldDisplay) {
|
if (shouldDisplay) {
|
||||||
return (
|
return (
|
||||||
<div class="center-wrapper">
|
<div class="center-wrapper">
|
||||||
<button
|
<button
|
||||||
class={classNames(displayClass, "reply-by-email-button")}
|
class={classNames(displayClass, "reply-by-email-button")}
|
||||||
data-email={encodedEmail}
|
data-email={encodedEmail}
|
||||||
data-title={encodeURIComponent(title)}
|
data-title={encodeURIComponent(title)}
|
||||||
onclick={`
|
onclick={`
|
||||||
const encodedEmail = this.getAttribute('data-email');
|
const encodedEmail = this.getAttribute('data-email');
|
||||||
const email = atob(encodedEmail);
|
const email = atob(encodedEmail);
|
||||||
const title = this.getAttribute('data-title');
|
const title = this.getAttribute('data-title');
|
||||||
@ -54,9 +54,9 @@ const ReplyByEmail: QuartzComponent = ({
|
|||||||
return false;
|
return false;
|
||||||
`}
|
`}
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
return null
|
return null
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user