Skip to content

Commit

Permalink
fix: removed semantic-ui grid class
Browse files Browse the repository at this point in the history
  • Loading branch information
SaraBianchi committed Sep 21, 2022
1 parent 2fae630 commit f8c5b65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/Widget/HoneypotCaptchaWidget.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.public-ui .ui.grid > .row.honey-wrapper {
.honey-wrapper {
display: none;
}
13 changes: 6 additions & 7 deletions src/components/Widget/HoneypotCaptchaWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
* @module components/manage/Widgets/HoneypotCaptchaWidget
*/

import React, { useState, useEffect } from 'react';
import React, { useState, useEffect } from "react";

import TextWidget from '@plone/volto/components/manage/Widgets/TextWidget';
import { Grid } from 'semantic-ui-react';
import './HoneypotCaptchaWidget.css';
import TextWidget from "@plone/volto/components/manage/Widgets/TextWidget";
import "./HoneypotCaptchaWidget.css";

/**
* HoneypotCaptchaWidget component class.
Expand Down Expand Up @@ -36,12 +35,12 @@ const HoneypotCaptchaWidget = ({
}, [captchaToken, id]);

useEffect(() => {
onChangeFormData(id, id, '', { label: id });
onChangeFormData(id, id, "", { label: id });
}, []);

const [value, setValue] = useState();
return (
<Grid.Row className="honey-wrapper" key={'honeypot-captcha'}>
<div className="honey-wrapper" key={"honeypot-captcha"}>
<TextWidget
id={id}
name={id}
Expand All @@ -55,7 +54,7 @@ const HoneypotCaptchaWidget = ({
}}
value={value}
/>
</Grid.Row>
</div>
);
};

Expand Down

0 comments on commit f8c5b65

Please sign in to comment.