Skip to content

Commit

Permalink
Updated center layout icon
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Nov 28, 2024
1 parent 94df672 commit 3bdae40
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
22 changes: 0 additions & 22 deletions src/panelWebView/components/Icons/CenterIcon.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/panelWebView/components/Icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export * from './AddIcon';
export * from './ArchiveIcon';
export * from './BranchIcon';
export * from './BugIcon';
export * from './CenterIcon';
export * from './CopilotIcon';
export * from './FileIcon';
export * from './FolderOpenedIcon';
Expand Down
3 changes: 2 additions & 1 deletion src/panelWebView/components/OtherActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { Messenger } from '@estruyf/vscode/dist/client';
import { BookOpenIcon } from '@heroicons/react/24/outline';
import * as l10n from '@vscode/l10n';
import { LocalizationKey } from '../../localization';
import { Icon } from 'vscrui';

export interface IOtherActionsProps {
isFile: boolean;
Expand Down Expand Up @@ -65,7 +66,7 @@ const OtherActions: React.FunctionComponent<IOtherActionsProps> = ({
</OtherActionButton>

<OtherActionButton onClick={() => Messenger.send(CommandToCode.toggleCenterMode)}>
<CenterIcon /> <span>{l10n.t(LocalizationKey.panelOtherActionsCenterMode)}</span>
<Icon name='layout-centered' className='mr-2' /> <span>{l10n.t(LocalizationKey.panelOtherActionsCenterMode)}</span>
</OtherActionButton>

<OtherActionButton onClick={createAsTemplate} disabled={!isFile}>
Expand Down

0 comments on commit 3bdae40

Please sign in to comment.