Improve business profile branding uploads and super-admin link menus.
Show separate light/dark logo and favicon croppers in a compact grid, support favicon saves, and keep super-admin overflow dashboard links in English. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
5e799eddf9
commit
468bb87fcf
@@ -61,21 +61,21 @@ export function BusinessActionsOverflowMenu({
|
||||
? ([
|
||||
{
|
||||
key: 'website',
|
||||
label: 'باز کردن وبسایت',
|
||||
label: 'Open website',
|
||||
detail: apex,
|
||||
icon: Globe,
|
||||
onClick: () => openHost(apex),
|
||||
},
|
||||
{
|
||||
key: 'business',
|
||||
label: 'داشبورد کسبوکار',
|
||||
label: 'Business dashboard',
|
||||
detail: `business.${apex}`,
|
||||
icon: Building2,
|
||||
onClick: () => openHost(`business.${apex}`),
|
||||
},
|
||||
{
|
||||
key: 'customer',
|
||||
label: 'داشبورد مشتری',
|
||||
label: 'Customer dashboard',
|
||||
detail: `customer.${apex}`,
|
||||
icon: UserRound,
|
||||
onClick: () => openHost(`customer.${apex}`),
|
||||
@@ -151,8 +151,8 @@ export function BusinessActionsOverflowMenu({
|
||||
e.stopPropagation()
|
||||
toggleOpen()
|
||||
}}
|
||||
title="عملیات بیشتر"
|
||||
aria-label={`عملیات بیشتر برای ${businessName}`}
|
||||
title="More actions"
|
||||
aria-label={`More actions for ${businessName}`}
|
||||
aria-haspopup="menu"
|
||||
aria-expanded={open}
|
||||
>
|
||||
@@ -166,9 +166,7 @@ export function BusinessActionsOverflowMenu({
|
||||
ref={popoverRef}
|
||||
className={styles.menu}
|
||||
role="menu"
|
||||
aria-label={`عملیات بیشتر برای ${businessName}`}
|
||||
lang="fa"
|
||||
dir="rtl"
|
||||
aria-label={`More actions for ${businessName}`}
|
||||
style={{
|
||||
top: popoverPos.top,
|
||||
left: popoverPos.left,
|
||||
@@ -206,7 +204,7 @@ export function BusinessActionsOverflowMenu({
|
||||
}}
|
||||
>
|
||||
<Users size={16} />
|
||||
<span>همه کاربران</span>
|
||||
<span>All users</span>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
@@ -220,7 +218,7 @@ export function BusinessActionsOverflowMenu({
|
||||
}}
|
||||
>
|
||||
<Eraser size={16} />
|
||||
<span>پاکسازی داده</span>
|
||||
<span>Wipe data</span>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
@@ -232,7 +230,7 @@ export function BusinessActionsOverflowMenu({
|
||||
}}
|
||||
>
|
||||
<Trash2 size={16} />
|
||||
<span>حذف</span>
|
||||
<span>Remove</span>
|
||||
</button>
|
||||
</div>,
|
||||
document.body,
|
||||
|
||||
Reference in New Issue
Block a user