Skip to content

Commit

Permalink
Merge pull request #25 from wallet-dm/tomm/social-links
Browse files Browse the repository at this point in the history
  • Loading branch information
MuckT authored Jul 1, 2024
2 parents fb36a8a + 948e944 commit 23fd1a5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
25 changes: 23 additions & 2 deletions src/component-library/components/SideNav/SideNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ const SideNav = ({
const [isQrCodeDialogOpen, setIsQrCodeDialogOpen] = useState(false);

const onSideNavBtnClick = (key: string) => {
if (key === t("menu.collapse_header")) setIsOpen(!isOpen);
if (key === t("menu.collapse_header")) {
setIsOpen((prev) => !prev);
}
};

const onXmtpIconClick = () => {
Expand Down Expand Up @@ -324,7 +326,25 @@ const SideNav = ({
<hr className="m-2" />
</>
)}

<div className="flex-col">
<div className="flex-1 text-sm m-2 text-black-600 hover:text-black-800">
<a
href="https://discord.com/channels/1183606352204021760/1183606352204021763"
target="_blank"
rel="noreferrer">
{t("common.discord")}
</a>
</div>
<div className="flex-1 text-sm m-2 text-black-600 hover:text-black-800">
<a
href="https://x.com/walletdm_app"
target="_blank"
rel="noreferrer">
{t("common.twitter")}
</a>
</div>
</div>
<hr className="m-2" />
<span className="text-sm ml-2 text-red-600 hover:text-red-800">
<a
href="https://github.com/wallet-dm/xmtp-dapp/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml&title=Bug%3A+"
Expand All @@ -333,6 +353,7 @@ const SideNav = ({
{t("common.report_bug")}
</a>
</span>

<hr className="m-2" />
<GhostButton
onClick={onDisconnect}
Expand Down
4 changes: 3 additions & 1 deletion src/locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@
"share_code": "Share the power of the XMTP network with your friends, family and colleagues",
"share_link": "Copy your share link",
"share_qr_code": "Share QR Code",
"report_bug": "Report a bug"
"report_bug": "Report a bug",
"discord": "Discord",
"twitter": "Twitter"
},
"consent": {
"accept": "Accept",
Expand Down
4 changes: 3 additions & 1 deletion src/locales/hi_IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
"share_code": "XMTP नेटवर्क की शक्ति को अपने मित्रों, परिवार और सहकर्मियों के साथ साझा करें",
"share_link": "अपने शेयर लिंक को कॉपी करें",
"share_qr_code": "क्यूआर कोड साझा करें",
"report_bug": "बग रिपोर्ट करो"
"report_bug": "बग रिपोर्ट करो",
"discord": "Discord",
"twitter": "Twitter"
},
"consent": {
"accept": "लेना",
Expand Down

0 comments on commit 23fd1a5

Please sign in to comment.