Skip to content

Commit

Permalink
translations
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Mar 14, 2024
1 parent 9369277 commit 38e5e34
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/components/organization/orgNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,14 @@ const AdminHamburgerMenu = ({ orgData }) => {
const AdminNavMenu = ({ orgData }) => {
const { callModal } = useModalStore();
const openModal = useOpenModal(orgData);
const b = useTranslations("commonButtons");
const t = useTranslations();

return (
<div>
<div className="dropdown dropdown-end">
<div tabIndex={0} role="button" className="btn btn-ghost">
<div className="rounded-full">WEBHOOKS</div>
<div className="rounded-full">{b("addWebhooks")}</div>
</div>
<ul
tabIndex={0}
Expand All @@ -99,7 +102,11 @@ const AdminNavMenu = ({ orgData }) => {
void callModal({
title: (
<p>
<span>Edit Webhook </span>
<span>
{t(
"admin.organization.listOrganization.webhookModal.editWebhookTitle",
)}
</span>
<span className="text-primary">{webhook.name}</span>
</p>
),
Expand All @@ -123,7 +130,7 @@ const AdminNavMenu = ({ orgData }) => {
role="button"
className="btn btn-ghost"
>
<div className="rounded-full">INVITE USER</div>
<div className="rounded-full">{b("inviteUser")}</div>
</div>
</div>
<div className="dropdown dropdown-end">
Expand All @@ -133,7 +140,7 @@ const AdminNavMenu = ({ orgData }) => {
role="button"
className="btn btn-ghost"
>
<div className="rounded-full">META</div>
<div className="rounded-full">{b("meta")}</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 38e5e34

Please sign in to comment.