ShiftSync/src/pages/Settings/Settings.jsx

48 lines
1,018 B
React
Raw Normal View History

2025-05-26 01:40:36 +00:00
import React, { useEffect, useState } from 'react';
import styled from '@emotion/styled';
2025-05-20 16:28:48 +00:00
import { Link } from 'react-router-dom';
2025-05-26 01:40:36 +00:00
import { Stack } from '@mui/material';
import { ToggleTabs } from '@components';
const OuterContainer = styled(Stack)`
display: flex;
align-items: center;
flex-direction: row;
justify-content: flex-end;
padding: 10px 10px 0px 0px;
`;
2025-05-20 16:28:48 +00:00
export const Settings = () => {
2025-05-26 01:40:36 +00:00
const tabs = [
{
label: 'Personal',
value: 'personal'
},
{
label: 'Organization',
value: 'org'
}
];
const [tabValue, setTabValue] = useState(tabs[0]);
2025-05-20 16:28:48 +00:00
useEffect(() => {
document.title = 'ShiftSync | Settings';
2025-05-20 16:28:48 +00:00
}, []);
return (
<div>
2025-05-26 01:40:36 +00:00
<OuterContainer>
<ToggleTabs
tabs={tabs}
tabValue={tabValue}
setTabValue={setTabValue}
tabColor='#4D79FF'
/>
</OuterContainer>
<h1>Settings Page</h1>
2025-05-20 16:28:48 +00:00
<Link to="/">Go to Home</Link>
</div>
);
};