houston inshallah

This commit is contained in:
Evan Lanham
2022-04-08 04:25:57 +00:00
parent 23f6452a06
commit dd7856ef97
8 changed files with 16 additions and 12 deletions
+2 -2
View File
@@ -75,8 +75,8 @@ const DevPage = () => {
const updateScheduleDoc = useCallback(() => {
//gets the matches list from the blue alliance api
superagent
.get("https://www.thebluealliance.com/api/v3" + "/event/2022code/matches")
// .get("https://www.thebluealliance.com/api/v3" + "/event/2022utwv/matches")
//.get("https://www.thebluealliance.com/api/v3" + "/event/2022code/matches")
.get("https://www.thebluealliance.com/api/v3" + "/event/2022utwv/matches")
// .get("https://www.thebluealliance.com/api/v3" + "/event/2022cala/matches")
// .get("https://www.thebluealliance.com/api/v3" + "/events/2022/keys")
.set("X-TBA-Auth-Key", "6aXgVYCAcyy4O7FwCGLqj5ATcima5k25smssLqUuHAHTCvGtCWXX7aoM9xNWfaSm")
+9 -3
View File
@@ -15,9 +15,9 @@ const TeamPage = () => {
let panel_sx = {
display: "flex",
flexDirection: { xs: "column", md: "row" },
alignItems: { xs: "center", sm: "center" },
justifyContent: { xs: "flex-start", sm: "center" },
flexDirection: "column",
alignItems: "center",
justifyContent: "flex-start",
bgcolor: "background.paper",
p: 2,
m: 1,
@@ -52,6 +52,9 @@ const TeamPage = () => {
drive_motors: "",
wheels: "",
climb_level: "",
which_hub: "",
shooter_type: "",
alignment_strategy: "",
misc_design: "",
};
if (typeof res[team] !== "undefined") {
@@ -74,6 +77,9 @@ const TeamPage = () => {
<FastField type="input" as={TextField} name="drive_motors" label="# of Drive Motors" />
<FastField type="input" as={TextField} name="wheels" label="Wheels" />
<FastField type="input" as={TextField} name="climb_level" label="Climb Level" />
<FastField type="input" as={TextField} name="which_hub" label="Which Hub" />
<FastField type="input" as={TextField} name="shooter_type" label="Shooter Type" />
<FastField type="input" as={TextField} name="alignment_strategy" label="Alignment Strat" />
<FastField type="input" as={TextField} name="misc_design" label="Misc" />
</Box>
<Box sx={{ ...panel_sx, display: "flex", flexDirection: "column" }}>