Skip to content

Commit

Permalink
revert: Remove nested submit button styling in Consent component
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Feb 14, 2024
1 parent 3ee6ec0 commit 6035d41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions backend/experiment/rules/gold_msi.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ def first_round(self, experiment):
consent = Consent(
style=FrontendStyle(
EFrontendStyle.BOOLEAN,
submit_button=FrontendStyle(
EFrontendStyle.SUCCESS
)
)
)
return [
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/components/Consent/Consent.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const Consent = ({ title, text, experiment, participant, onNext, confirm, deny,

const correction = width > 720 ? 300 : 250;

const submitButtonStyle = style?.submit_button?.root || '';

// Show consent
return (
Expand Down Expand Up @@ -88,7 +87,7 @@ const Consent = ({ title, text, experiment, participant, onNext, confirm, deny,
</a>

<Button
className={classNames("btn-positive", submitButtonStyle)}
className="btn-positive"
onClick={onAgree}
title={confirm}
/>
Expand Down

0 comments on commit 6035d41

Please sign in to comment.