Skip to content

Commit

Permalink
web: add copy button for support email in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
alihamuh authored and thecodrr committed Nov 18, 2024
1 parent 846c949 commit 5ef392c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/web/src/dialogs/settings/other-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,15 @@ export const SupportSettings: SettingsGroup[] = [
title: strings.emailSupport(),
description: strings.emailSupportDesc(),
components: [
{
type: "button",
action: async () => {
await navigator.clipboard.writeText("support@streetwriters.co");
showToast("info", strings.copied());
},
title: strings.copy(),
variant: "secondary"
},
{
type: "button",
action: () => {
Expand Down

0 comments on commit 5ef392c

Please sign in to comment.