Skip to content

Commit

Permalink
fix: remove widget panel from text widget
Browse files Browse the repository at this point in the history
  • Loading branch information
tracy-french authored and diehbria committed Nov 21, 2023
1 parent 15108b0 commit 0620284
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/dashboard/src/customization/widgets/text/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@ import TextWidgetComponent from './component';
import TextIcon from './icon';
import type { DashboardPlugin } from '~/customization/api';
import type { TextWidget } from '../types';
import WidgetTile from '~/components/widgets/tile/tile';
import { TEXT_WIDGET_INITIAL_HEIGHT, TEXT_WIDGET_INITIAL_WIDTH } from '../constants';

export const textPlugin: DashboardPlugin = {
install: ({ registerWidget }) => {
registerWidget<TextWidget>('text', {
render: (widget) => (
<WidgetTile widget={widget} removeable>
<TextWidgetComponent {...widget} />
</WidgetTile>
),
render: (widget) => <TextWidgetComponent {...widget} />,
componentLibrary: {
name: 'Text',
icon: TextIcon,
Expand Down

0 comments on commit 0620284

Please sign in to comment.