Currently working on a project and when clicked on the tab, it should change pages but for some reason its not changing. Only stuck on the overview page. Is there something I'm doing wrong?
import React, {useState} from 'react';
import Tab from 'react-bootstrap/Tab';
import Tabs from 'react-bootstrap/Tabs';
import ClientOverview from '../client_dashboard/client_components/overview';
import ClientImpact from '../client_dashboard/client_components/impacts';
import Box from '@mui/material/Box';
import InputLabel from '@mui/material/InputLabel';
import FormControl from '@mui/material/FormControl';
import Select from '@mui/material/Select';
const ClientDashContainer = props => {
const [value, setValue] = useState('overview');
const handleChange = (event, newValue) => {
setValue(newValue);
};
return(
<div style={{padding:'2%', backgroundColor:'#f5f5f5', minHeight:'95vh'}}>
<Box>
<FormControl style={{width:'15vw', minWidth:'fit-content'}}>
<InputLabel id="demo-simple-select-label">Sites</InputLabel>
<Select labelId="demo-simple-select-label" id="demo-simple-select" label="Sites">
</Select>
</FormControl>
</Box>
<Tabs defaultActiveKey="overview" className="mb-3" justify value={value} onChange={handleChange}>
<Tab value = 'overview' eventKey="overview" title="Overview"/>
<Tab value = 'impacts' eventKey="impacts" title="Impacts"/>
</Tabs>
{value === 'overview' && <ClientOverview/>}
{value === 'impacts' && <ClientImpact/>}
</div>
);
}
export default ClientDashContainer;