Skip to content

Commit

Permalink
♻️ refactor: rename artifacts to plugins in portal (lobehub#3986)
Browse files Browse the repository at this point in the history
* ♻️ refactor: rename to plugins

* 💄 style: use another icon
  • Loading branch information
arvinxx authored Sep 15, 2024
1 parent dd9122f commit 073b936
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Body from './Body';
import Header from './Header';
import { useEnable } from './useEnable';

export const Artifacts = {
export const Plugins = {
Body,
Header,
useEnable,
Expand Down
4 changes: 2 additions & 2 deletions src/app/(main)/chat/(workspace)/@portal/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import { memo } from 'react';

import { Artifacts } from './Artifacts';
import { FilePreview } from './FilePreview';
import { HomeBody, HomeHeader } from './Home';
import { MessageDetail } from './MessageDetail';
import { Plugins } from './Plugins';

const items = [MessageDetail, Artifacts, FilePreview];
const items = [MessageDetail, Plugins, FilePreview];

export const PortalHeader = memo(() => {
const enabledList: boolean[] = [];
Expand Down
4 changes: 2 additions & 2 deletions src/features/Conversation/Messages/Tool/Inspector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ActionIcon, Highlighter, Icon, Tag } from '@lobehub/ui';
import { Tabs, Typography } from 'antd';
import isEqual from 'fast-deep-equal';
import {
InspectionPanel,
BetweenVerticalStart,
LucideBug,
LucideBugOff,
LucideChevronDown,
Expand Down Expand Up @@ -113,7 +113,7 @@ const Inspector = memo<InspectorProps>(
<Flexbox horizontal>
{!isMobile && showRightAction && (
<ActionIcon
icon={InspectionPanel}
icon={BetweenVerticalStart}
onClick={() => {
if (!isMessageToolUIOpen) openToolUI(id, identifier);
else {
Expand Down

0 comments on commit 073b936

Please sign in to comment.