Skip to content

Commit

Permalink
feat: remove Draftjs
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Oct 11, 2023
1 parent 595183b commit 2c0c20b
Show file tree
Hide file tree
Showing 33 changed files with 32 additions and 1,304 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class EditBlock extends SubblockEdit {
key="tel"
data={this.props.data}
fieldName="tel"
wrapClass="tel"
selected={this.props.selected && this.state.focusOn === 'tel'}
onChangeBlock={(block, _data) => {
this.onChange({ ...this.props.data, tel: _data.value });
Expand All @@ -177,6 +178,7 @@ class EditBlock extends SubblockEdit {
<TextEditorWidget
{...this.props}
key="email"
wrapClass="email"
data={this.props.data}
fieldName="email"
selected={this.props.selected && this.state.focusOn === 'email'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@

import React from 'react';
import PropTypes from 'prop-types';
import redraft from 'redraft';
import { useIntl, defineMessages } from 'react-intl';
import { UniversalLink } from '@plone/volto/components';

import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme';
import { Card, CardBody, CardReadMore } from 'design-react-kit';
import config from '@plone/volto/registry';

import { TextBlockView } from '@plone/volto-slate/blocks/Text';

const messages = defineMessages({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ const PageHeaderLinkServizio = ({ content }) => {
content.canale_digitale_link &&
!content.stato_servizio ? (
<div className="mb-4">
<p className="draftjs-buttons">
<UniversalLink href={content.canale_digitale_link}>
<p className="canale-digitale" data-element="service-online-access">
<UniversalLink
className="btn btn-primary btn-lg"
href={content.canale_digitale_link}
>
{intl.formatMessage(messages.canale_digitale_link)}
</UniversalLink>
</p>
Expand Down
11 changes: 5 additions & 6 deletions src/components/ItaliaTheme/View/ServizioView/ServizioAccedi.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ const ServizioAccedi = ({ content }) => {
>
{content.canale_digitale_link && (
<div className="mb-4">
{/* TODO */}
<p
className="draftjs-buttons"
data-element="service-online-access"
>
<UniversalLink href={content.canale_digitale_link}>
<p data-element="service-online-access">
<UniversalLink
href={content.canale_digitale_link}
className="btn btn-primary mobile-full"
>
{intl.formatMessage(messages.canale_digitale_link)}
</UniversalLink>
</p>
Expand Down
27 changes: 0 additions & 27 deletions src/config/RichTextEditor/LinkEntity.jsx

This file was deleted.

This file was deleted.

This file was deleted.

88 changes: 0 additions & 88 deletions src/config/RichTextEditor/Plugins/AnchorPlugin/index.js

This file was deleted.

Loading

0 comments on commit 2c0c20b

Please sign in to comment.