Skip to content

Commit

Permalink
Merge branch 'main' into drumwolf/userprofile/hero
Browse files Browse the repository at this point in the history
  • Loading branch information
John Lee authored and John Lee committed Jan 4, 2024
2 parents 2d174e9 + 8911649 commit e89b5f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions client/src/pages/Tree/Tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function Tree({
setTimeout(() => {
setMaintenanceAlert(null);
setMaintenanceAlertVisible(false);
}, 10000);
}, 6000);
}

const closeMaintenanceAlert = () => {
Expand Down Expand Up @@ -112,7 +112,6 @@ export default function Tree({
<TreeMaintenance
currentTreeData={currentTreeData}
isTreeQueryError={isTreeQueryError}
closeTreeDetails={handleClose}
maintenanceAlert={handleMaintenanceAlert}
closeMaintenanceAlert={closeMaintenanceAlert}
/>
Expand Down
3 changes: 1 addition & 2 deletions client/src/pages/Tree/TreeMaintenance.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import useAuthUtils from '@/components/Auth/useAuthUtils';
import TreeMaintenanceSidebar from './TreeMaintenanceSidebar';
import './TreeMaintenance.scss';

export default function TreeMaintenance({ currentTreeData, isTreeQueryError, closeTreeDetails, maintenanceAlert, closeMaintenanceAlert }) {
export default function TreeMaintenance({ currentTreeData, isTreeQueryError, maintenanceAlert, closeMaintenanceAlert }) {
const { id } = currentTreeData;
const { user = {}, isAuthenticated } = useAuth0();
const { loginToCurrentPage } = useAuthUtils();
Expand Down Expand Up @@ -55,7 +55,6 @@ export default function TreeMaintenance({ currentTreeData, isTreeQueryError, clo

const handleConfirm = ({ actions, volunteer, comment }) => {
closeMaintenanceSidebar();
closeTreeDetails()
MaintenanceSubmitNotification("success", "Thank you for submitting a maintenance request!")

if (comment || Object.keys(actions).length) {
Expand Down
1 change: 1 addition & 0 deletions client/src/pages/Tree/TreeMaintenance.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
place-items: center;
width: 100%;
height: 0px;
z-index: 1000000;
}

.alert-success {
Expand Down

0 comments on commit e89b5f4

Please sign in to comment.