Skip to content

Commit

Permalink
feat: compatibility with new design-react-kit
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed Mar 23, 2023
1 parent 7b1094e commit c00c55c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
11 changes: 3 additions & 8 deletions src/views/Channel.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import React, { useState, createRef, useCallback, useEffect } from 'react';
import { defineMessages, useIntl } from 'react-intl';
import { Grid } from 'semantic-ui-react';
import {
Form,
Label,
Input,
Button,
} from 'design-react-kit/dist/design-react-kit';
import { Form, Label, Input, Button } from 'design-react-kit';
import { useDispatch, useSelector } from 'react-redux';
import { toast } from 'react-toastify';
import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme';
Expand Down Expand Up @@ -293,7 +288,7 @@ const Channel = ({ content, location }) => {
{!(subscribeLoaded && subscribeStatus !== 'error') && (
<>
<Label
className="text-white font-weight-semibold active"
className="text-white fw-semibold active"
htmlFor="input-newsletter"
style={{
transition: 'none 0 ease 0',
Expand Down Expand Up @@ -376,7 +371,7 @@ const Channel = ({ content, location }) => {
{!(unsubscribeLoaded && unsubscribeStatus !== 'error') && (
<>
<Label
className="text-white font-weight-semibold active"
className="text-white fw-semibold active"
htmlFor="input-newsletter"
style={{
transition: 'none 0 ease 0',
Expand Down
2 changes: 1 addition & 1 deletion src/views/NewsletterConfirmSubscribe.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect } from 'react';
import { defineMessages, useIntl } from 'react-intl';
import { Form, Icon, Button } from 'design-react-kit/dist/design-react-kit';
import { Form, Icon, Button } from 'design-react-kit';
import { confirmNewsletterSubscription } from '../actions';
import { useDispatch, useSelector } from 'react-redux';
import PropTypes from 'prop-types';
Expand Down
2 changes: 1 addition & 1 deletion src/views/NewsletterConfirmUnsubscribe.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect } from 'react';
import { defineMessages, useIntl } from 'react-intl';
import { Form, Icon, Button } from 'design-react-kit/dist/design-react-kit';
import { Form, Icon, Button } from 'design-react-kit';
import { confirmNewsletterSubscription } from '../actions';
import { useDispatch, useSelector } from 'react-redux';
import PropTypes from 'prop-types';
Expand Down

0 comments on commit c00c55c

Please sign in to comment.