diff --git a/code/frontend/src/components/ButtonIconOnly.js b/code/frontend/src/components/ButtonIconOnly.js
new file mode 100644
index 0000000..564d4d5
--- /dev/null
+++ b/code/frontend/src/components/ButtonIconOnly.js
@@ -0,0 +1,11 @@
+import React from "react"
+import Style from "./ButtonIconOnly.module.css"
+import classNames from "classnames"
+import Button from "./Button"
+
+
+export default function ButtonIconOnly({ children, className, ...props }) {
+ return (
+
+ )
+}
diff --git a/code/frontend/src/components/ButtonIconOnly.module.css b/code/frontend/src/components/ButtonIconOnly.module.css
new file mode 100644
index 0000000..fb80757
--- /dev/null
+++ b/code/frontend/src/components/ButtonIconOnly.module.css
@@ -0,0 +1,5 @@
+.ButtonIconOnly {
+ width: 40px;
+ height: 40px;
+ border-radius: 20px;
+}
diff --git a/code/frontend/src/components/ConditionBadge.js b/code/frontend/src/components/ConditionBadge.js
index 113ecfb..a6d125e 100644
--- a/code/frontend/src/components/ConditionBadge.js
+++ b/code/frontend/src/components/ConditionBadge.js
@@ -30,7 +30,7 @@ const CONDITION_ICONS = {
* @returns {JSX.Element}
* @constructor
*/
-export default function ConditionBadge(condition) {
+export default function ConditionBadge({ ...condition }) {
const { id, type, content } = condition
const color = CONDITION_COLORS[type]
const icon = CONDITION_ICONS[type]
@@ -48,7 +48,10 @@ export default function ConditionBadge(condition) {
{content}
- removeCondition(condition)}/>
+ {
+ console.debug(`Removing Condition: `, condition)
+ removeCondition(condition)
+ }}/>
)
diff --git a/code/frontend/src/components/FormInline.js b/code/frontend/src/components/FormInline.js
new file mode 100644
index 0000000..34727dd
--- /dev/null
+++ b/code/frontend/src/components/FormInline.js
@@ -0,0 +1,12 @@
+import React from "react"
+import Style from "./FormInline.module.css"
+import classNames from "classnames"
+
+
+export default function FormInline({ children, className, ...props }) {
+ return (
+
+ {children}
+
+ )
+}
diff --git a/code/frontend/src/components/FormInline.module.css b/code/frontend/src/components/FormInline.module.css
new file mode 100644
index 0000000..119f4da
--- /dev/null
+++ b/code/frontend/src/components/FormInline.module.css
@@ -0,0 +1,9 @@
+.FormInline {
+ display: flex;
+ flex-direction: row;
+
+ gap: 10px;
+
+ justify-content: space-between;
+ align-items: center;
+}
diff --git a/code/frontend/src/components/Input.module.css b/code/frontend/src/components/Input.module.css
index 28bb69d..0d294d5 100644
--- a/code/frontend/src/components/Input.module.css
+++ b/code/frontend/src/components/Input.module.css
@@ -11,7 +11,7 @@
font-family: var(--font-regular);
- width: 300px;
+ width: 100%;
}
.Input:focus {
diff --git a/code/frontend/src/components/InputWithIcon.module.css b/code/frontend/src/components/InputWithIcon.module.css
index 0c916ac..aa869b9 100644
--- a/code/frontend/src/components/InputWithIcon.module.css
+++ b/code/frontend/src/components/InputWithIcon.module.css
@@ -5,7 +5,7 @@
color: var(--fg-field-off);
margin: 2px;
- width: 300px;
+ width: 100%;
}
.InputWithIcon.Focused {
diff --git a/code/frontend/src/hooks/useArrayState.js b/code/frontend/src/hooks/useArrayState.js
index d8b895a..ec529f4 100644
--- a/code/frontend/src/hooks/useArrayState.js
+++ b/code/frontend/src/hooks/useArrayState.js
@@ -6,6 +6,7 @@ export default function useArrayState(def) {
const appendValue = useCallback(
newSingle => {
+ console.debug("Appending ", newSingle, " to ArrayState")
setValue(
oldArray => [...oldArray, newSingle]
)
@@ -15,6 +16,7 @@ export default function useArrayState(def) {
const spliceValue = useCallback(
position => {
+ console.debug("Splicing ", position, " from ArrayState")
setValue(
oldArray => {
// TODO: Hope this doesn't break anything...
@@ -28,8 +30,9 @@ export default function useArrayState(def) {
const removeValue = useCallback(
remValue => {
+ console.debug("Removing ", remValue, " from ArrayState")
setValue(
- oldArray => oldArray.filter(item => item !== remValue)
+ oldArray => oldArray.filter(item => JSON.stringify(item) !== JSON.stringify(remValue))
)
},
[]