Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add twitter and discord social links #25

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading