Skip to content

Commit

Permalink
Merge pull request #161 from Laura-D-Andrews/#115-add-skills
Browse files Browse the repository at this point in the history
added skills to EditProfile.js
  • Loading branch information
GitLukeW authored Sep 3, 2023
2 parents 25bbd83 + 86d57ce commit 1b40a0d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions src/pages/Profile/EditProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,29 @@ export default function EditProfile({ token, pk, setAuth }) {
: `+1${phoneNumber}`;

const skillsChoices = [
"AI",
"AWS S3",
"Bootstrap",
"Career Help",
"CSS",
"Django",
"FastAPI",
"Git",
"GitHub",
"HTML",
"Insomnia",
"Interview Help",
"JavaScript",
"MUI",
"Other",
"PostgreSQL",
"Postico",
"Python",
"React",
"Resume Help",
"SQL",
"Time Management",
"Vue.js",
];

useEffect(() => {
Expand Down
18 changes: 9 additions & 9 deletions src/pages/SessionSignup/SessionSignup.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function SessionSignup({ token }) {
const [selectedStartTime, setSelectedStartTime] = useState(null);
const [openSnackbar, setOpenSnackbar] = useState(false);
const [selectedDayLabel, setSelectedDayLabel] = useState(""); // for highlighting the selected day
const [issue, setIssue] = useState(false)
const [issue, setIssue] = useState(false);
const navigate = useNavigate();

const handleTimeBlockChange = (event) => {
Expand All @@ -37,7 +37,7 @@ export default function SessionSignup({ token }) {
setSelectedStartTime(start);
};

useEffect(() => { }, [selectedStartTime]);
useEffect(() => {}, [selectedStartTime]);

const getTimeBlocks = (start, end, blockLength, slotPk) => {
const startTime = start instanceof Date ? start : new Date(start);
Expand Down Expand Up @@ -143,13 +143,13 @@ export default function SessionSignup({ token }) {
const blockEndTime =
selectedDayOnly < endDay
? new Date(
selected.getFullYear(),
selected.getMonth(),
selected.getDate(),
23,
59,
59
)
selected.getFullYear(),
selected.getMonth(),
selected.getDate(),
23,
59,
59
)
: end;
return getTimeBlocks(
blockStartTime,
Expand Down

0 comments on commit 1b40a0d

Please sign in to comment.