11import React from "react" ;
22import SwipeableViews from "react-swipeable-views" ;
3- import { makeStyles , Theme , useTheme } from "@material-ui/core/styles" ;
3+ import { makeStyles , useTheme } from "@material-ui/core/styles" ;
44import AppBar from "@material-ui/core/AppBar" ;
55import Tabs from "@material-ui/core/Tabs" ;
66import Tab from "@material-ui/core/Tab" ;
77import Box from "@material-ui/core/Box" ;
88import MeetingCard from "./MeetingCard" ;
9+ import "./MeetingTabs.css" ;
910
1011interface TabPanelProps {
1112 children ?: React . ReactNode ;
@@ -16,9 +17,11 @@ interface TabPanelProps {
1617
1718function TabPanel ( props : TabPanelProps ) {
1819 const { children, value, index, ...other } = props ;
20+ const classes = useStyles ( ) ;
1921
2022 return (
2123 < div
24+ className = { classes . cardContainer }
2225 role = "tabpanel"
2326 hidden = { value !== index }
2427 id = { `full-width-tabpanel-${ index } ` }
@@ -37,12 +40,19 @@ function a11yProps(index: number) {
3740 } ;
3841}
3942
40- const useStyles = makeStyles ( ( theme : Theme ) => ( {
43+ const useStyles = makeStyles ( ( ) => ( {
4144 root : {
4245 width : "100vw" ,
4346 } ,
4447 tabbar : {
45- backgroundColor : theme . palette . background . paper ,
48+ color : "white" ,
49+ background : "rgba(0, 0, 0, 0.5)" ,
50+ } ,
51+ cardContainer : {
52+ display : "flex" ,
53+ flexDirection : "column" ,
54+ alignItems : "center" ,
55+ overflow : "hidden" ,
4656 } ,
4757} ) ) ;
4858
@@ -62,15 +72,13 @@ const MeetingTabs: React.FC = () => {
6272
6373 return (
6474 < div className = { classes . root } >
65- < AppBar position = "static" color = "default" >
75+ < AppBar className = { classes . tabbar } position = "static" color = "default" >
6676 < Tabs
67- className = { classes . tabbar }
6877 value = { value }
6978 onChange = { handleChange }
70- indicatorColor = "primary "
71- textColor = "primary "
79+ indicatorColor = "secondary "
80+ textColor = "inherit "
7281 variant = "fullWidth"
73- aria-label = "full width tabs example"
7482 >
7583 < Tab label = "Meetings" { ...a11yProps ( 0 ) } />
7684 < Tab label = "Polls" { ...a11yProps ( 1 ) } />
0 commit comments