Skip to content

Commit

Permalink
feat: remove leanchat navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjdd committed Dec 25, 2023
1 parent e4e973e commit 89cf479
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 83 deletions.
39 changes: 0 additions & 39 deletions next/api/src/controller/leanchat.ts

This file was deleted.

39 changes: 0 additions & 39 deletions next/web/src/App/Admin/LeanChat/index.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions next/web/src/App/Admin/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ export function Sidebar(props: ComponentPropsWithoutRef<'aside'>) {
</Path>
</RequirePermission>
}
<Path to="/admin/leanchat" title="在线客服">
<BsChatSquareDots className="m-auto w-4 h-4" />
</Path>
{isAdmin && (
<Path to="/admin/settings" title="设置">
<AiOutlineSetting className="m-auto w-5 h-5" />
Expand Down
2 changes: 0 additions & 2 deletions next/web/src/App/Admin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import Settings from './Settings';
import Stats from './Stats';
import { NewTicket } from '../Tickets/New';
import { Verification } from './Verification';
import LeanChat from './LeanChat';

const NavigateToAvailablePage = () => {
const isCustomerService = useCurrentUserIsCustomerService();
Expand Down Expand Up @@ -89,7 +88,6 @@ export default function AdminPage() {
}
/>
<Route path="/verification/*" element={<Verification />} />
<Route path="/leanchat" element={<LeanChat />} />
<Route path="*" element={<NavigateToAvailablePage />} />
</Routes>
</div>
Expand Down

0 comments on commit 89cf479

Please sign in to comment.