Skip to content

Commit

Permalink
fix: fixed const variables and added row class
Browse files Browse the repository at this point in the history
  • Loading branch information
SaraBianchi committed Sep 16, 2022
1 parent 1946a08 commit 300d6c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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 @@
.honey-wrapper {
.public-ui .ui.grid > .row.honey-wrapper {
display: none;
}
5 changes: 3 additions & 2 deletions src/components/Widget/HoneypotCaptchaWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import React, { useState, useEffect } from 'react';

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

/**
Expand Down Expand Up @@ -40,7 +41,7 @@ const HoneypotCaptchaWidget = ({

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

Expand Down

0 comments on commit 300d6c9

Please sign in to comment.