Action
-
Position
- setIsTopPosition(true)} />
- Top (centered)
+ handlePositionChange(true)}
+ />
- setIsTopPosition(false)} />
- Bottom (centered)
+ handlePositionChange(false)}
+ />
-
URL
+
+
URL
+ onChange={handleSetUrl}
+ />
);
};
diff --git a/frontend/src/components/BannerPageComponents/BannerLeftContent/BannerLeftContent.module.scss b/frontend/src/components/BannerPageComponents/BannerLeftContent/BannerLeftContent.module.scss
index fc21ec74..d9034350 100644
--- a/frontend/src/components/BannerPageComponents/BannerLeftContent/BannerLeftContent.module.scss
+++ b/frontend/src/components/BannerPageComponents/BannerLeftContent/BannerLeftContent.module.scss
@@ -15,5 +15,4 @@
.radioContent{
display: flex;
}
-
}
\ No newline at end of file
diff --git a/frontend/src/components/CheckIcon/CheckIcon.stories.js b/frontend/src/components/CheckIcon/CheckIcon.stories.js
index c0ff700c..301811b4 100644
--- a/frontend/src/components/CheckIcon/CheckIcon.stories.js
+++ b/frontend/src/components/CheckIcon/CheckIcon.stories.js
@@ -1,74 +1,74 @@
-import CheckIcon from './CheckIcon';
-
-//Storybook display settings
-export default {
- title: 'Visuals/CheckIcon',
- component: CheckIcon,
- argTypes: {
- type: {
- options: ['outline', 'solid'],
- control: { type: 'radio' }
- },
- size: {
- options: ['small', 'medium', 'large'],
- control: { type: 'radio' }
- },
- color: {
- options: ['purple', 'black', 'green'],
- control: { type: 'radio' }
- }
- },
- parameters: {
- layout: "centered"
- },
- tags: ["autodocs"]
-};
-
-//Stories for each Check circle type
-export const PurpleOutline = {
- args: {
- type: 'outline',
- size: 'medium',
- color: 'purple'
- }
-};
-
-export const BlackOutline = {
- args: {
- type: 'outline',
- size: 'medium',
- color: 'black'
- }
-};
-
-export const GreenOutline = {
- args: {
- type: 'outline',
- size: 'medium',
- color: 'green'
- }
-};
-
-export const PurpleSolid = {
- args: {
- type: 'solid',
- size: 'medium',
- color: 'purple'
- }
-};
-
-export const BlackSolid = {
- args: {
- type: 'solid',
- size: 'medium',
- color: 'black'
- }
-};
-
-export const GreenSolid = {
- args: {
- type: 'solid',
- size: 'medium',
- color: 'green'
- }
-};
\ No newline at end of file
+import CheckIcon from './CheckIcon';
+
+//Storybook display settings
+export default {
+ title: "Visuals/CheckIcon",
+ component: CheckIcon,
+ argTypes: {
+ type: {
+ options: ["outline", "solid"],
+ control: { type: "radio" },
+ },
+ size: {
+ options: ["small", "medium", "large"],
+ control: { type: "radio" },
+ },
+ color: {
+ options: ["purple", "black", "green"],
+ control: { type: "radio" },
+ },
+ },
+ parameters: {
+ layout: "centered",
+ },
+ tags: ["autodocs"],
+};
+
+//Stories for each Check circle type
+export const PurpleOutline = {
+ args: {
+ type: "outline",
+ size: "medium",
+ color: "purple",
+ },
+};
+
+export const BlackOutline = {
+ args: {
+ type: "outline",
+ size: "medium",
+ color: "black",
+ },
+};
+
+export const GreenOutline = {
+ args: {
+ type: "outline",
+ size: "medium",
+ color: "green",
+ },
+};
+
+export const PurpleSolid = {
+ args: {
+ type: "solid",
+ size: "medium",
+ color: "purple",
+ },
+};
+
+export const BlackSolid = {
+ args: {
+ type: "solid",
+ size: "medium",
+ color: "black",
+ },
+};
+
+export const GreenSolid = {
+ args: {
+ type: "solid",
+ size: "medium",
+ color: "green",
+ },
+};
diff --git a/frontend/src/components/RadioButton/RadioButton.jsx b/frontend/src/components/RadioButton/RadioButton.jsx
new file mode 100644
index 00000000..2d51a526
--- /dev/null
+++ b/frontend/src/components/RadioButton/RadioButton.jsx
@@ -0,0 +1,77 @@
+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 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: '""',
+ },
+});
+
+function RadioButton({
+ id,
+ name,
+ value,
+ label,
+ onChange,
+ onClick,
+ size = 'small',
+ checked = false,
+ enabled = true
+}) {
+
+ const handleChange = (event) => {
+ if (checked) {
+ onChange({ target: { name, value: '' } });
+ } else {
+ onChange(event);
+ }
+ };
+
+ return (
+