+
+
+ Select Platform
+
+
+
+
+
+
+ Label:
+
+
+
+
+
+
+
+
+
+
+ >
)
}
\ No newline at end of file
diff --git a/client/src/components/join/joinPlatform.tsx b/client/src/components/join/joinPlatform.tsx
index 90d04b6..74b01a6 100644
--- a/client/src/components/join/joinPlatform.tsx
+++ b/client/src/components/join/joinPlatform.tsx
@@ -2,42 +2,125 @@
Select which platform you're joining from!
*/
-import React, {useState} from 'react';
+import React, {useEffect, useRef, useState} from 'react';
import Box from '@mui/material/Box';
import InputLabel from '@mui/material/InputLabel';
import MenuItem from '@mui/material/MenuItem';
import FormControl from '@mui/material/FormControl';
import Select from '@mui/material/Select';
+import Button from "@mui/material/Button";
+import {getSlackInstallURL} from "../../api/slack";
+import {getBridgeByStateToken} from "../../api/bridge";
import {JoinSlack} from "../panels/joinSlack";
-const PLATFORMS = {
- 'Slack': JoinSlack
+enum PLATFORMS {
+ Slack = 'Slack'
}
export const JoinPlatform = ({
- platformSetter
+ platformSetter,
+ bridgeSetter,
+ completeSetter
}) => {
- const [platform, setPlatform] = useState()
+ const [platform, setPlatform] = useState