Skip to content

Commit

Permalink
feat(admin-client): disabled donation widget
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomario committed Nov 25, 2024
1 parent 81a241d commit 294be80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions clients/packages/admin-client/src/mobrender/widgets/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { Draft } from './draft/components';
import {
Pressure,
Form,
Content,
Donation,
Content
} from '../../mobilizations/widgets/__plugins__';
import { PressureEmailIcon, PressurePhoneIcon } from './icons';
import { createEditorContent } from '../../mobilizations/widgets/__plugins__/content/components/editor-slate';
Expand Down Expand Up @@ -98,7 +97,7 @@ export default (mobilization, widget, { intl }) => [
redirect: Paths.pressure(mobilization.id, widget.id),
},
{
component: Donation,
component: () => <div>Doação desativada</div>,
kind: 'donation',
// TODO: propriedades relacionadas ao draft
icon: 'money',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if (require('exenv').canUseDOM) require('./draft.scss');
const Draft = ({ mobilization, widget, update, intl, ...extraProps }) => {
const updateKind = (props) => update({ ...widget, ...props });
const widgetsConfig = widgets(mobilization, widget, { intl }).filter(
(w) => w.kind !== 'draft'
(w) => w.kind !== 'draft' && w.kind !== 'donation'
);

return (
Expand Down

0 comments on commit 294be80

Please sign in to comment.