Action
@@ -22,33 +27,33 @@ const BannerLeftContent = ({ setIsTopPosition, url, setUrl, setButtonAction }) =
onActionChange={handleActionChange}
/>
Position
-
- {/* How the functionality should be */}
-
- setIsTopPosition(true)}/>} label="Top" />
- setIsTopPosition(false)}/>} label="Bottom" />
-
- {/* How it should look */}
- setIsTopPosition(true)} />
- Top (centered)
+ handlePositionChange('top')}
+ />
- setIsTopPosition(false)} />
- Bottom (centered)
+ handlePositionChange('bottom')}
+ />
- {/* How it is right now */}
-
setIsTopPosition(true)}/>
- setIsTopPosition(false)}/>
URL
+ onChange={handleSetUrl}
+ />
);
};
diff --git a/frontend/src/components/RadioButton/RadioButton.jsx b/frontend/src/components/RadioButton/RadioButton.jsx
index a3356472..0d7e85db 100644
--- a/frontend/src/components/RadioButton/RadioButton.jsx
+++ b/frontend/src/components/RadioButton/RadioButton.jsx
@@ -1,60 +1,77 @@
-import React from "react";
-import PropTypes from "prop-types";
-import { Radio } from "@mui/material";
+import React from 'react';
+import PropTypes from 'prop-types';
+import { Radio } from '@mui/material';
+import { styled } from '@mui/material/styles';
import './RadioButtonStyles.css';
+const CustomRadioIcon = styled('span')({
+ borderRadius: '50%',
+ width: 16,
+ height: 16,
+ boxShadow: 'inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)',
+ });
-const RadioButton = ({
- id,
- name,
- value,
- label,
- onChange,
- onclick,
- sx,
- buttonSize = 'small',
- color = 'var(--main-purple)',
- checked = false,
- enabled = true,
-
-}) => {
- const sizeClass = buttonSize === 'large' ? 'radio-large' : 'radio-small';
-
- const handleChange = (event) => {
- if (checked) {
- onChange({ target: { name, value: '' } });
- } else {
- onChange(event);
- }
- };
+const CustomRadioCheckedIcon = styled('span')({
+ borderRadius: '50%',
+ backgroundColor: 'var(--main-purple)',
+ '&::before': {
+ display: 'block',
+ width: 16,
+ height: 16,
+ backgroundImage: 'radial-gradient(#fff, #fff 28%, transparent 32%)',
+ content: '""',
+ },
+});
- return (
-