diff --git a/.DS_Store b/.DS_Store index b4b7e59..fb40b1e 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/frontend/src/Call/CallPlayer.js b/frontend/src/Call/CallPlayer.js index 09f962e..e27b131 100644 --- a/frontend/src/Call/CallPlayer.js +++ b/frontend/src/Call/CallPlayer.js @@ -129,8 +129,6 @@ function CallPlayer(props) { }, [selectCallId, callsData]) - - return (
diff --git a/frontend/src/Call/components/CallInfo.js b/frontend/src/Call/components/CallInfo.js index b6440f7..a566028 100644 --- a/frontend/src/Call/components/CallInfo.js +++ b/frontend/src/Call/components/CallInfo.js @@ -1,4 +1,4 @@ -import React from "react"; +import React, { useState } from "react"; import { useCallLink } from "./CallLinks"; import { useGetGroupsQuery, useGetTalkgroupsQuery } from '../../features/api/apiSlice' import { Link, useLocation, useParams, useNavigate } from 'react-router-dom'; @@ -9,9 +9,10 @@ import { Segment, Statistic, Icon, - Menu + Menu, + Tab } from "semantic-ui-react"; - +import PlaylistBuilder from "./PlaylistBuilder" // ---------------------------------------------------- function CallInfo(props) { const { shortName } = useParams(); @@ -44,51 +45,73 @@ function CallInfo(props) { talkgroupNum = currentCall.talkgroupNum; } - const {callLink,callDownload,callTweet} = useCallLink(props.call) + const { callLink, callDownload, callTweet } = useCallLink(props.call) + const [activeTab, setActiveTab] = useState(0); + const handleTabChange = (e, data) => setActiveTab(data.activeIndex); + + const panes = [ + { + menuItem: 'Call Info', render: () => { + return ( +
+ +
{header}
+ + {srcList} + + + + Seconds + {callLength} + + + Talkgroup + {talkgroupNum} + + + + + + + {callTime} + + + + + + {callDate} + + + + + + {callFreq} MHz + + + +
+ + Tweet + Download + Link + +
+ ) + } + }, + { + menuItem: 'Playlist', render: () => { + return ( + + ) + } + } + ] + return (
- -
{header}
- - {srcList} - - - - Seconds - {callLength} - - - Talkgroup - {talkgroupNum} - - - - - - - {callTime} - - - - - - {callDate} - - - - - - {callFreq} MHz - - - -
- - Tweet - Download - Link - +
); } diff --git a/frontend/src/Call/PlaylistBuilder.js b/frontend/src/Call/components/PlaylistBuilder.js similarity index 100% rename from frontend/src/Call/PlaylistBuilder.js rename to frontend/src/Call/components/PlaylistBuilder.js