Skip to content

Commit

Permalink
updated skills to display per the wireframe
Browse files Browse the repository at this point in the history
  • Loading branch information
GitLukeW committed Apr 10, 2023
1 parent 11f92a2 commit a9a4e55
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions src/components/ProfileMentor.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {
InputLabel,
Select,
MenuItem,
List,
ListItem,
} from "@mui/material";
import { Switch } from "@mui/material";
import FormControl from "@mui/material/FormGroup";
Expand All @@ -22,7 +24,7 @@ export default function ProfileMentor({ token, pk, setAuth }) {
const [lastName, setLastName] = useState("");
const [phoneNumber, setPhoneNumber] = useState("");
const [profilePhoto, setProfilePhoto] = useState("");
const [skills, setSkills] = useState("");
const [skills, setSkills] = useState([]);
const [about_me, setAboutMe] = useState("");

useEffect(() => {
Expand Down Expand Up @@ -91,17 +93,28 @@ export default function ProfileMentor({ token, pk, setAuth }) {
>
What You Know
</Typography>
<Stack spacing={1} textAlign={"Center"} fontSize={"25px"}>
{skills}
</Stack>
<Box>
<List>
{skills.map((skill) => (
<ListItem
sx={{
fontSize: "20px",
justifyContent: "center",
}}
>
{skill}
</ListItem>
))}
</List>
</Box>
</Box>
<Box width={"100%"} className="mentorProfile--notifications">
<Box>
<Typography variant="h4" paddingLeft={"1rem"}>
Notifications:
</Typography>

<Grid container direction={"row"} spacing={2}>
<Grid container direction={"row"} spacing={2}>
<Grid marginRight={"rem"} marginLeft={"4rem"} width={"30rem"}>
<Grid item>
{/* <FormControl width="1rem">
Expand All @@ -122,7 +135,7 @@ export default function ProfileMentor({ token, pk, setAuth }) {
</Select>
</FormControl> */}

<Grid Item>
<Grid item>
<br></br>
</Grid>
<Grid item>
Expand Down Expand Up @@ -152,7 +165,7 @@ export default function ProfileMentor({ token, pk, setAuth }) {

<Grid item textAlign={"center"}>
<FormControlLabel control={<Switch />} />
<Grid Item>
<Grid item>
<FormControlLabel control={<Switch />} />
</Grid>
<Grid item>
Expand All @@ -168,7 +181,7 @@ export default function ProfileMentor({ token, pk, setAuth }) {

<Grid item textAlign={"center"}>
<FormControlLabel control={<Switch />} />
<Grid Item>
<Grid item>
<FormControlLabel control={<Switch />} />
</Grid>
<Grid item>
Expand Down

0 comments on commit a9a4e55

Please sign in to comment.