diff --git a/src/client/src/teameditor.js b/src/client/src/teameditor.js
index ff9dc81..2e9b09b 100644
--- a/src/client/src/teameditor.js
+++ b/src/client/src/teameditor.js
@@ -1,28 +1,69 @@
import * as React from "react";
import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom";
-import Appbar from './components/appbar';
-import { Button, TextField, MenuItem, InputLabel, Select, Container, Slider } from '@mui/material'
-
-function TeamList() {
- let teams = {"team 1": ["tom", "eric", "gustav"], "team 2": ["emma", "mari", "ida"],"team 3": ["ola", "ole", "ost"],"team 4": ["christine", "kristine", "kristhine"]}
- return (
-
- {Object.entries(teams).map(([team, players]) => )}
-
-
)
-}
+import Appbar from "./components/appbar";
+import {
+ Button,
+ TextField,
+ MenuItem,
+ InputLabel,
+ Select,
+ Container,
+ Slider,
+} from "@mui/material";
function TeamChanger() {
-
return (
- <>
-
- >
+ <>
+
+ >
+ );
+}
+
+function TeamList() {
+ let teams = {
+ "team 1": ["tom", "eric", "gustav"],
+ "team 2": ["emma", "mari", "ida"],
+ "team 3": ["ola", "ole", "ost"],
+ "team 4": ["christine", "kristine", "kristhine"],
+ };
+ const [teamInput, setteamInput] = React.useState("");
+ const [membersInput, setmembersInput] = React.useState("");
+ React.useEffect(() => {
+ document.getElementById("teamInput").value = teamInput;
+ document.getElementById("membersInput").value = membersInput;
+ });
+ return (
+
+
+ {Object.entries(teams).map(([team, players]) => (
+ -
+
+
+ ))}
+
+
);
}