diff --git a/web-ui/src/components/certifications/EarnedCertificationsTable.css b/web-ui/src/components/certifications/EarnedCertificationsTable.css
index 9013e52810..bc320a8f4e 100644
--- a/web-ui/src/components/certifications/EarnedCertificationsTable.css
+++ b/web-ui/src/components/certifications/EarnedCertificationsTable.css
@@ -1,6 +1,4 @@
#earned-certifications-table {
- display: flex;
- justify-content: center;
.MuiCardHeader-root {
padding-bottom: 0;
@@ -13,6 +11,7 @@
table {
margin: 0 auto;
+ width: 100%;
border-collapse: collapse;
img {
@@ -43,6 +42,10 @@
tr:nth-child(odd) {
background-color: var(--checkins-palette-background-default);
}
+
+ .actions-th {
+ width: 6rem;
+ }
}
.earned-certifications-dialog {
diff --git a/web-ui/src/components/certifications/EarnedCertificationsTable.jsx b/web-ui/src/components/certifications/EarnedCertificationsTable.jsx
index dc5feeb87f..a13b67e8ad 100644
--- a/web-ui/src/components/certifications/EarnedCertificationsTable.jsx
+++ b/web-ui/src/components/certifications/EarnedCertificationsTable.jsx
@@ -10,6 +10,7 @@ import {
} from '@mui/icons-material';
import {
Autocomplete,
+ Avatar,
Button,
Card,
CardContent,
@@ -370,7 +371,7 @@ const EarnedCertificationsTable = ({
() => (
}
+ avatar={}
title="Earned Certifications"
titleTypographyProps={{ variant: 'h5', component: 'h2' }}
/>
@@ -389,7 +390,7 @@ const EarnedCertificationsTable = ({
{sortIndicator(column)}
))}
- | Actions |
+ Actions |
{earnedCertifications.map(earnedCertificationRow)}
diff --git a/web-ui/src/components/dialogs/OrganizationDialog.jsx b/web-ui/src/components/dialogs/OrganizationDialog.jsx
index 67a977b1cf..b227144f28 100644
--- a/web-ui/src/components/dialogs/OrganizationDialog.jsx
+++ b/web-ui/src/components/dialogs/OrganizationDialog.jsx
@@ -2,17 +2,25 @@ import React from 'react';
import { Dialog, DialogTitle, DialogContent, DialogActions, Button, TextField } from '@mui/material';
import PropTypes from 'prop-types';
-const OrganizationDialog = ({ open, onClose, onSave, organization, setOrganization }) => {
+const OrganizationDialog = ({
+ open,
+ onClose,
+ onSave,
+ organization,
+ setOrganization
+}) => {
return (
);
diff --git a/web-ui/src/components/profile/Profile.jsx b/web-ui/src/components/profile/Profile.jsx
index 9a3e03a3b0..3bad89d0e7 100644
--- a/web-ui/src/components/profile/Profile.jsx
+++ b/web-ui/src/components/profile/Profile.jsx
@@ -1,11 +1,10 @@
import React, { useContext, useEffect, useState } from 'react';
import { styled } from '@mui/material/styles';
-import { Avatar, Typography, Button, Dialog, DialogTitle, DialogContent, DialogActions, TextField } from '@mui/material';
+import { Avatar, Typography } from '@mui/material';
import { AppContext } from '../../context/AppContext';
import { selectProfileMap } from '../../context/selectors';
import { getAvatarURL } from '../../api/api.js';
import { getMember } from '../../api/member';
-import { saveNewOrganization, saveNewEvent } from '../../api/volunteer'; // Importing the functions from volunteer.js
const PREFIX = 'Profile';
@@ -53,22 +52,19 @@ const Root = styled('div')(() => ({
}
}));
-const Profile = ({ memberId, pdlId, checkinPdlId, showButtons = true }) => { // Add showButtons prop with default as true
+const Profile = ({ memberId, pdlId, checkinPdlId }) => {
const { state } = useContext(AppContext);
const { csrf } = state;
const userProfile = selectProfileMap(state)[memberId];
- const { workEmail, name, title, location, supervisorid } = userProfile ? userProfile : {};
+ const { workEmail, name, title, location, supervisorid } = userProfile
+ ? userProfile
+ : {};
const [pdl, setPDL] = useState('');
const [checkinPdl, setCheckinPdl] = useState('');
const [supervisor, setSupervisor] = useState('');
- const [organizationDialogOpen, setOrganizationDialogOpen] = useState(false);
- const [eventDialogOpen, setEventDialogOpen] = useState(false);
- const [newOrganization, setNewOrganization] = useState({ name: '', description: '', website: '' });
- const [newEvent, setNewEvent] = useState({ relationshipId: '', eventDate: '', hours: 0, notes: '' });
-
const areSamePdls = checkinPdl && pdl && checkinPdl === pdl;
// Get PDL's name
@@ -76,7 +72,8 @@ const Profile = ({ memberId, pdlId, checkinPdlId, showButtons = true }) => { //
async function getPDLName() {
if (pdlId) {
let res = await getMember(pdlId, csrf);
- let pdlProfile = res.payload.data && !res.error ? res.payload.data : undefined;
+ let pdlProfile =
+ res.payload.data && !res.error ? res.payload.data : undefined;
setPDL(pdlProfile ? pdlProfile.name : '');
}
}
@@ -90,7 +87,8 @@ const Profile = ({ memberId, pdlId, checkinPdlId, showButtons = true }) => { //
async function getCheckinPDLName() {
if (checkinPdlId) {
let res = await getMember(checkinPdlId, csrf);
- let checkinPdlProfile = res.payload.data && !res.error ? res.payload.data : undefined;
+ let checkinPdlProfile =
+ res.payload.data && !res.error ? res.payload.data : undefined;
setCheckinPdl(checkinPdlProfile ? checkinPdlProfile.name : '');
}
}
@@ -104,7 +102,8 @@ const Profile = ({ memberId, pdlId, checkinPdlId, showButtons = true }) => { //
async function getSupervisorName() {
if (supervisorid) {
let res = await getMember(supervisorid, csrf);
- let supervisorProfile = res.payload.data && !res.error ? res.payload.data : undefined;
+ let supervisorProfile =
+ res.payload.data && !res.error ? res.payload.data : undefined;
setSupervisor(supervisorProfile ? supervisorProfile.name : '');
}
}
@@ -113,24 +112,6 @@ const Profile = ({ memberId, pdlId, checkinPdlId, showButtons = true }) => { //
}
}, [csrf, supervisorid]);
- const handleSaveNewOrganization = async () => {
- const result = await saveNewOrganization(csrf, newOrganization); // Use the imported API call
- if (result.error) {
- // Handle error
- return;
- }
- setOrganizationDialogOpen(false);
- };
-
- const handleSaveNewEvent = async () => {
- const result = await saveNewEvent(csrf, newEvent); // Use the imported API call
- if (result.error) {
- // Handle error
- return;
- }
- setEventDialogOpen(false);
- };
-
return (
{ //
-
+
{workEmail}
@@ -167,100 +152,14 @@ const Profile = ({ memberId, pdlId, checkinPdlId, showButtons = true }) => { //
Current PDL: {pdl}
- {checkinPdl && !areSamePdls && `PDL @ Time of Check-In: ${checkinPdl}`}
+ {checkinPdl &&
+ !areSamePdls &&
+ `PDL @ Time of Check-In: ${checkinPdl}`}
-
- {/* Conditionally render the buttons based on showButtons prop */}
- {showButtons && (
- <>
-
-
-
- >
- )}
-
- {/* Organization Creation Dialog */}
-
-
- {/* Event Creation Dialog */}
-
);
};
-export default Profile;
\ No newline at end of file
+export default Profile;
diff --git a/web-ui/src/components/profile/__snapshots__/Profile.test.jsx.snap b/web-ui/src/components/profile/__snapshots__/Profile.test.jsx.snap
index 408fbc0530..e523ca3728 100644
--- a/web-ui/src/components/profile/__snapshots__/Profile.test.jsx.snap
+++ b/web-ui/src/components/profile/__snapshots__/Profile.test.jsx.snap
@@ -56,30 +56,6 @@ exports[`renders correctly 1`] = `
Current PDL:
-
-
diff --git a/web-ui/src/components/skills/SkillSection.css b/web-ui/src/components/skills/SkillSection.css
index 0440c89ce3..f39d5845f1 100644
--- a/web-ui/src/components/skills/SkillSection.css
+++ b/web-ui/src/components/skills/SkillSection.css
@@ -79,7 +79,6 @@
flex-direction: row;
flex-wrap: wrap;
align-items: flex-end;
- padding: 0 16px 16px 16px;
justify-content: space-between;
}
diff --git a/web-ui/src/components/skills/SkillSection.jsx b/web-ui/src/components/skills/SkillSection.jsx
index 1c722f9766..c83bda5f45 100644
--- a/web-ui/src/components/skills/SkillSection.jsx
+++ b/web-ui/src/components/skills/SkillSection.jsx
@@ -23,9 +23,11 @@ import { getSkill, createSkill } from '../../api/skill.js';
import SkillSlider from './SkillSlider';
import {
+ Avatar,
Button,
Card,
CardActions,
+ CardContent,
Dialog,
DialogActions,
DialogContent,
@@ -280,9 +282,10 @@ const SkillSection = ({ userId }) => {
+
-
+
Skills
@@ -315,6 +318,7 @@ const SkillSection = ({ userId }) => {
);
})}
+