From 03b7ccaa5c152c8d7ed73374be8ad4d4d034845b Mon Sep 17 00:00:00 2001
From: sowgro <tpoke.ferrari@gmail.com>
Date: Thu, 7 Nov 2024 12:40:42 -0500
Subject: Implement sorting and refactor

---
 extension/src/RadioButtonGroup.tsx | 36 ------------------------------------
 1 file changed, 36 deletions(-)
 delete mode 100644 extension/src/RadioButtonGroup.tsx

(limited to 'extension/src/RadioButtonGroup.tsx')

diff --git a/extension/src/RadioButtonGroup.tsx b/extension/src/RadioButtonGroup.tsx
deleted file mode 100644
index da1b521..0000000
--- a/extension/src/RadioButtonGroup.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-import React, {ReactElement, useEffect, useId, useState} from "react";
-
-interface RadioProps {
-    children: ReactElement<HTMLOptionElement>[],
-    value: any,
-    onChange?: (arg0: any) => void
-}
-
-function RadioButtonGroup(props: RadioProps) {
-    const [selected, setSelected] = useState(props.value);
-    useEffect(() => {
-        setSelected(props.value);
-    }, [props.value]);
-    useEffect(() => {
-        props.onChange && props.onChange(selected);
-    }, [selected])
-
-    return (
-        <div className="radio-group">
-            { props.children.map((item) => (
-                <label>
-                    <input
-                        type="radio"
-                        name={useId()}
-                        value={item.props.value}
-                        checked={item.props.value === selected}
-                        onChange={e => setSelected(e.target.value)}
-                    />
-                    {item.props.children.toString()}
-                </label>
-            )) }
-        </div>
-    )
-}
-
-export default RadioButtonGroup
\ No newline at end of file
-- 
cgit v1.2.3

