impl open feedback url

This commit is contained in:
2026-07-16 11:49:07 +08:00
parent 2c1d4c8775
commit 0342582d4d
@@ -10,6 +10,7 @@ import { useEffect, useRef, useState } from 'react';
import { getClientProfileDashboard } from '../services/clientApi';
import BRAND_ICON from '../../../../packages/shared/src/icons/taonier-product-ip.png';
import { openUrl } from '@tauri-apps/plugin-opener';
function cx(...classNames: Array<string | false | null | undefined>) {
return classNames.filter(Boolean).join(' ');
}
@@ -139,7 +140,7 @@ function SidebarAccountMenu({
className={sidebarMenuItemClass}
onClick={
() => showNotice('使用指南')
// TODO open url https://kcnz41bksl1c.feishu.cn/wiki/YN5TwLxreiYHrYk9DNqcjz8QnZc
// TODO doc is not ready
}
>
使
@@ -149,8 +150,7 @@ function SidebarAccountMenu({
role="menuitem"
className={sidebarMenuItemClass}
onClick={
() => showNotice('反馈联系')
// TODO open url https://kcnz41bksl1c.feishu.cn/share/base/form/shrcn1p9WpuZMDxrI5ysLLJhw7k
() => openUrl("https://kcnz41bksl1c.feishu.cn/share/base/form/shrcn1p9WpuZMDxrI5ysLLJhw7k")
}
>
@@ -296,7 +296,7 @@ export function Sidebar({
className={sidebarHelpButtonClass}
onClick={() => {
// TODO open the guide
// TODO open url https://kcnz41bksl1c.feishu.cn/wiki/YN5TwLxreiYHrYk9DNqcjz8QnZc
// TODO doc is not ready
}}
>
<CircleHelp size={17} aria-hidden="true" />