Skip to content

Commit 0dd8441

Browse files
authored
Merge branch 'development' into amalesh-linting-pr
2 parents 308d304 + 894f20d commit 0dd8441

63 files changed

Lines changed: 6524 additions & 1237 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/actions/dashboardActions.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export const INCREMENT_DASHBOARD_TASK_COUNT = 'INCREMENT_DASHBOARD_TASK_COUNT';
2+
export const UPDATE_SUMMARY_BAR_DATA = 'UPDATE_SUMMARY_BAR_DATA'
23

34
export const incrementDashboardTaskCount = (taskId) => {
45
console.log(`Dispatching incrementDashboardTaskCount for task ID: ${taskId}`);
@@ -7,3 +8,11 @@ export const incrementDashboardTaskCount = (taskId) => {
78
payload: { taskId },
89
};
910
};
11+
12+
export const updateSummaryBarData = ({summaryBarData}) => {
13+
console.log(summaryBarData);
14+
return {
15+
type: UPDATE_SUMMARY_BAR_DATA,
16+
payload: { summaryBarData },
17+
};
18+
};

src/components/Collaboration/JobFormBuilder.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ h2 {
7979
margin-top: 15px;
8080
}
8181

82-
input,
82+
/* input,
8383
textarea,
8484
select {
85-
/* width: 95%; */
85+
width: 95%;
8686
padding: 10px;
8787
margin-top: 5px;
8888
margin-bottom: 15px;
@@ -94,7 +94,7 @@ select {
9494
textarea {
9595
height: 80px;
9696
resize: vertical;
97-
}
97+
} */
9898

9999
.new-field-section {
100100
background-color: #d9d9d9;
@@ -142,10 +142,10 @@ textarea {
142142
/* gap: 10px; */
143143
}
144144

145-
.field-options input,
145+
/* .field-options input,
146146
textarea {
147147
width: 95%;
148-
}
148+
} */
149149

150150
/* Individual Option Item */
151151
.option-item {

src/components/CommunityPortal/CPDashboard.jsx

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,11 @@
11
import { useState, useEffect } from 'react';
2-
import {
3-
Container,
4-
Row,
5-
Col,
6-
Card,
7-
CardBody,
8-
Button,
9-
Input,
10-
Dropdown,
11-
DropdownToggle,
12-
DropdownMenu,
13-
DropdownItem,
14-
} from 'reactstrap';
15-
import { useHistory } from 'react-router-dom'; // For React Router v5
2+
import { Container, Row, Col, Card, CardBody, Button, Input } from 'reactstrap';
163
import './CPDashboard.css';
174
import { FaCalendarAlt, FaMapMarkerAlt, FaUserAlt } from 'react-icons/fa';
185

196
export function CPDashboard() {
207
const [events, setEvents] = useState([]);
218
const [search, setSearch] = useState('');
22-
const [dropdownOpen, setDropdownOpen] = useState(false);
23-
const history = useHistory(); // Use useHistory for navigation
249

2510
useEffect(() => {
2611
const mockEvents = [
@@ -52,12 +37,6 @@ export function CPDashboard() {
5237
setEvents(mockEvents);
5338
}, []);
5439

55-
const toggleDropdown = () => setDropdownOpen(!dropdownOpen);
56-
57-
const handleNavigation = path => {
58-
history.push(path); // Navigate to the selected path
59-
};
60-
6140
return (
6241
<Container fluid className="dashboard-container">
6342
<header className="dashboard-header">
@@ -72,7 +51,7 @@ export function CPDashboard() {
7251
className="dashboard-search"
7352
/>
7453
</div>
75-
<Dropdown isOpen={dropdownOpen} toggle={toggleDropdown} className="community-dropdown">
54+
{/* <Dropdown isOpen={dropdownOpen} toggle={toggleDropdown} className="community-dropdown">
7655
<DropdownToggle caret color="secondary">
7756
Community Portal
7857
</DropdownToggle>
@@ -82,7 +61,7 @@ export function CPDashboard() {
8261
<DropdownItem onClick={() => handleNavigation('/about')}>About Us</DropdownItem>
8362
<DropdownItem onClick={() => handleNavigation('/contact')}>Contact</DropdownItem>
8463
</DropdownMenu>
85-
</Dropdown>
64+
</Dropdown> */}
8665
</div>
8766
</header>
8867

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
.header-wrapper {
2+
height: fit-content;
3+
width: clamp(100vw, 0.1rem + 1vw, 100%);
4+
}
5+
6+
.navbar {
7+
z-index: 100;
8+
white-space: nowrap;
9+
}
10+
11+
.timer-message-section {
12+
display: flex;
13+
align-items: center;
14+
justify-content: space-between;
15+
width: 100%;
16+
gap: 1rem;
17+
}
18+
19+
.nav-links {
20+
align-items: center;
21+
}
22+
23+
.redBackGroupHeader {
24+
z-index: 10;
25+
bottom: 0;
26+
right: 0;
27+
position: relative;
28+
height: 30px;
29+
text-align: center;
30+
vertical-align: middle;
31+
background: #ff4d4f;
32+
border-radius: 40px;
33+
color: #fff;
34+
padding: 3px 6px;
35+
max-width: 39px;
36+
font-size: 1rem;
37+
min-width: 29px;
38+
}
39+
40+
.owner-message {
41+
margin-right: 3rem;
42+
}
43+
44+
@media (max-width: 1500px) {
45+
.dashboard-text-link {
46+
font-size: 14px;
47+
}
48+
49+
.owner-message {
50+
margin-right: 0;
51+
}
52+
}
53+
54+
@media (max-width: 1400px) {
55+
.timer-message-section {
56+
display: flex;
57+
width: 0;
58+
margin-right: 0;
59+
}
60+
61+
.owner-message {
62+
display: none;
63+
}
64+
}

0 commit comments

Comments
 (0)