Skip to content

Commit

Permalink
Merge pull request #1693 from nossas/feature/disable-donation-widget
Browse files Browse the repository at this point in the history
Disabled donation widget
  • Loading branch information
sergiomario authored Nov 25, 2024
2 parents 81a241d + 294be80 commit e011fa7
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 e011fa7

Please sign in to comment.