diff --git a/package-lock.json b/package-lock.json
index 9ff76f06..e5d3e2fb 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -4845,11 +4845,6 @@
}
}
},
- "css-mediaquery": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/css-mediaquery/-/css-mediaquery-0.1.2.tgz",
- "integrity": "sha1-aiw3NEkoYYYxxUvTPO3TAdoYvqA="
- },
"css-prefers-color-scheme": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-3.1.1.tgz",
@@ -9574,14 +9569,6 @@
"uc.micro": "^1.0.5"
}
},
- "matchmediaquery": {
- "version": "0.3.1",
- "resolved": "https://registry.npmjs.org/matchmediaquery/-/matchmediaquery-0.3.1.tgz",
- "integrity": "sha512-Hlk20WQHRIm9EE9luN1kjRjYXAQToHOIAHPJn9buxBwuhfTHoKUcX+lXBbxc85DVQfXYbEQ4HcwQdd128E3qHQ==",
- "requires": {
- "css-mediaquery": "^0.1.2"
- }
- },
"md5.js": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz",
@@ -13291,6 +13278,11 @@
"xtend": "^4.0.1"
}
},
+ "react-markdown-editor-lite": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/react-markdown-editor-lite/-/react-markdown-editor-lite-1.2.2.tgz",
+ "integrity": "sha512-yHWdwaSiqbR4kdQUBBTBTnpNcBZOwl+a5eL2BrSTr6S2L3dyENF571LglU4zhBPViMJmX8XYYoYJEQVa7+0c2g=="
+ },
"react-mde": {
"version": "10.2.1",
"resolved": "https://registry.npmjs.org/react-mde/-/react-mde-10.2.1.tgz",
@@ -13461,17 +13453,6 @@
"tslib": "^1.0.0"
}
},
- "react-responsive": {
- "version": "8.1.0",
- "resolved": "https://registry.npmjs.org/react-responsive/-/react-responsive-8.1.0.tgz",
- "integrity": "sha512-U8Nv2/ZWACIw/fAE9XNPbc2Xo33X5q1bcCASc2SufvJ9ifB+o/rokfogfznSVcvS22hN1rafGi0uZD6GiVFEHw==",
- "requires": {
- "hyphenate-style-name": "^1.0.0",
- "matchmediaquery": "^0.3.0",
- "prop-types": "^15.6.1",
- "shallow-equal": "^1.1.0"
- }
- },
"react-router": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/react-router/-/react-router-5.2.0.tgz",
@@ -13533,6 +13514,14 @@
}
}
},
+ "react-router-hash-link": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmjs.org/react-router-hash-link/-/react-router-hash-link-2.2.2.tgz",
+ "integrity": "sha512-+8u5aAiRVWAFutH2Zwcm7UiuHmfed3Yn+d6aMVP8WGclMSv2ySAbGx836UifZO/+5o5QVhOS71soYHy0NVJN5g==",
+ "requires": {
+ "prop-types": "^15.7.2"
+ }
+ },
"react-scripts": {
"version": "3.4.1",
"resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-3.4.1.tgz",
@@ -13657,11 +13646,6 @@
"prop-types": "^15.6.2"
}
},
- "react-tiny-fab": {
- "version": "3.5.0",
- "resolved": "https://registry.npmjs.org/react-tiny-fab/-/react-tiny-fab-3.5.0.tgz",
- "integrity": "sha512-KjWzs7fsTTvrmCZrtKVV8EKdfoC7BgWCePujtWfczpXiUCECtBYkhP+EvBYLRgU6BAHdtduBfybfN4pTCpw2Zw=="
- },
"react-tinymce": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/react-tinymce/-/react-tinymce-0.4.0.tgz",
@@ -14638,11 +14622,6 @@
}
}
},
- "shallow-equal": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/shallow-equal/-/shallow-equal-1.2.1.tgz",
- "integrity": "sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA=="
- },
"shallowequal": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz",
diff --git a/package.json b/package.json
index 0852d7fa..72dac4ae 100644
--- a/package.json
+++ b/package.json
@@ -43,8 +43,8 @@
"react-mde": "^10.2.1",
"react-moment": "^0.9.7",
"react-redux": "^7.2.0",
- "react-responsive": "^8.0.3",
"react-router-dom": "^5.1.2",
+ "react-router-hash-link": "^2.2.2",
"react-scripts": "^3.4.0",
"react-shapes": "^0.1.0",
"react-share": "^4.2.1",
diff --git a/src/assets/svgs/NavigationIcons/menu.svg b/src/assets/svgs/NavigationIcons/menu.svg
new file mode 100644
index 00000000..efbde7b3
--- /dev/null
+++ b/src/assets/svgs/NavigationIcons/menu.svg
@@ -0,0 +1,6 @@
+
diff --git a/src/user/Activity/Activity.js b/src/user/Activity/Activity.js
index 37133b92..290c0395 100644
--- a/src/user/Activity/Activity.js
+++ b/src/user/Activity/Activity.js
@@ -16,6 +16,7 @@ import OrgAuth from '../dashboard/Community/components/OrgAuth';
import OrgMaintenance from '../dashboard/Community/components/OrgMaintenance';
import Users from './Users';
import ActivityTimeline from './ActivityTimeline';
+import { Accordion, Button } from 'react-bootstrap';
class Activity extends Component {
constructor(props) {
@@ -29,7 +30,8 @@ class Activity extends Component {
authentication: false,
maintenance: false,
activity: true,
- details: true
+ details: true,
+ sidebarOpen: false
},
};
}
@@ -49,41 +51,58 @@ class Activity extends Component {
render() {
const { view } = this.state
-
+ const toggleSidebar = () => {
+ this.setState((prevState) => {
+ return {
+ sidebarOpen: !prevState.sidebarOpen
+ }
+ })
+ }
return (
-
-
-
-
-
-
-
-
- {view === "profile" ?
: null}
- {view === "permission" ?
: null}
- {view === "settings" ?
: null}
- {view === "authentication" ?
: null}
- {view === "maintenance" ?
: null}
- {view === "activity" ? (
-
- ) : null}
- {view === "details" ? (
-
- ) : null}
+ <>
+
+
+
+
Community Settings
+
+
+
+
+ toggleSidebar()} variant="outline-secondary" size="sm" as={Button} eventKey="0">
+ {this.state.sidebarOpen?"Close Menu":"Setting Menu"}
+
+
+
+
+
+
+
+ {view === "profile" ?
: null}
+ {view === "permission" ?
: null}
+ {view === "settings" ?
: null}
+ {view === "authentication" ?
: null}
+ {view === "maintenance" ?
: null}
+ {view === "activity" ? (
+
+ ) : null}
+ {view === "details" ? (
+
+ ) : null}
+
-
-
-
+ >
);
}
}
@@ -94,4 +113,4 @@ const mapStateToProps = (state) => ({
post: state.post
})
-export default connect(mapStateToProps, { getEventById, getPostById })(withRouter(Activity));
\ No newline at end of file
+export default connect(mapStateToProps, { getEventById, getPostById })(withRouter(Activity));
diff --git a/src/user/Activity/ActivityTimeline.js b/src/user/Activity/ActivityTimeline.js
index a1fb6097..977d99d3 100644
--- a/src/user/Activity/ActivityTimeline.js
+++ b/src/user/Activity/ActivityTimeline.js
@@ -89,7 +89,7 @@ export default function ActivityTimeline() {
showSizeChanger
onShowSizeChange={onShowSizeChange}
defaultCurrent={1}
- total={500}
+ total={activity.length || 0}
onChange={handlePagination}
/>
diff --git a/src/user/Activity/Users.js b/src/user/Activity/Users.js
index a147ad28..68bf6c87 100644
--- a/src/user/Activity/Users.js
+++ b/src/user/Activity/Users.js
@@ -81,7 +81,7 @@ class Users extends Component {
showSizeChanger
onShowSizeChange={this.onShowSizeChange}
defaultCurrent={1}
- total={500}
+ total={users.length || 0}
onChange={this.handlePagination}
/>
@@ -96,4 +96,4 @@ const mapStateToProps = (state) => ({
insight: state.insight
})
-export default connect(mapStateToProps, { getMembers })(withRouter(Users));
\ No newline at end of file
+export default connect(mapStateToProps, { getMembers })(withRouter(Users));
diff --git a/src/user/Activity/activity.scss b/src/user/Activity/activity.scss
index 37cb5935..a34bf1a9 100644
--- a/src/user/Activity/activity.scss
+++ b/src/user/Activity/activity.scss
@@ -1,24 +1,9 @@
-.overall_container{
- display: flex;
- .main_navigation {
- left: -1px;
- top: -1px;
- height: 100vh;
- border: 1px solid #CCCCCC;
- box-sizing: border-box;
- }
- .user_activity_view {
- margin-top: 35px;
- margin-left: 15vw;
- margin-left: auto;
- margin-right: auto;
- .main_section {
+ .main_section {
+ margin: 35px auto auto 15vw;
display: flex;
flex-direction: row;
justify-items: center;
flex-wrap: wrap;
- margin-top: -1.3em;
- margin-left: -2vw;
.left_nav {
max-width: 20%;
height: 50%;
@@ -74,45 +59,67 @@
}
}
}
- }
-}
// mobile
+.activity_accordion {
+ display: none;
+}
+
@media screen and (max-width: 768px) {
- .overall_container{
- .org_settings_view {
- .main_section {
- .left_nav {
- .navigation {
- .list-group {
- .link {
- display: none;
- }
- .header_text {
- font-size: 10px;
- }
- }
- }
- }
- }
+.main_section {
+ width: 100%;
+ margin: 0;
+ padding: 2.5vh 2.5vw;
+ flex-direction: column;
+ .left_nav {
+ width: 100%;
+ max-width: 100%;
+ margin: 10px auto;
+ .activity_accordion {
+ display: block;
+ }
+ .left_nav_container {
+ display: none;
+ }
+ .navigation {
+ .list-group {
+ .link {
+ display: none;
+ }
+ .header_text {
+ font-size: 10px;
+ }
+ }
}
}
}
+}
// tablet
-@media screen and (min-width: 768px) and (max-width: 1023px) {
- .overall_container {
- .org_settings_view {
- .main_section {
- .left_nav {
- .navigation {
- .list-group {
- .link {
- font-size: 5px;
- }
- }
+@media screen and (min-width: 768px) and (max-width: 1024px) {
+
+ .main_section {
+ width: 100%;
+ margin: 0;
+ padding: 2.5vh 2.5vw;
+ flex-direction: column;
+ .left_nav {
+ width: 100%;
+ max-width: 100%;
+ margin: 10px auto;
+ .activity_accordion {
+ display: block;
+ }
+ .left_nav_container {
+ display: none;
+ }
+ .navigation {
+ .list-group {
+ .link {
+ font-size: 5px;
}
}
}
}
}
-}
\ No newline at end of file
+}
+
diff --git a/src/user/Activity/activityTimeline.scss b/src/user/Activity/activityTimeline.scss
index 172e5e11..9b12932a 100644
--- a/src/user/Activity/activityTimeline.scss
+++ b/src/user/Activity/activityTimeline.scss
@@ -14,8 +14,8 @@
}
}
.activities__list {
- max-height: 75vh;
- overflow-y: auto;
+ max-height: 100%;
+ overflow-y: hidden;
width: 75vw;
margin-top: 4px;
overflow-x: hidden;
@@ -23,9 +23,26 @@
display: flex;
flex-direction: row;
flex-wrap: wrap;
+ padding-top: 1rem;
.pagination__container {
- position: fixed;
- margin-top: 78vh;
+ width: 100%;
}
}
-}
\ No newline at end of file
+}
+
+@media (min-width: 320px) and (max-width: 1024px){
+ .activity__timeline {
+ margin: 0;
+ padding-top: 2.5vh;
+ .activities__list {
+ max-height: 100%;
+ overflow: hidden;
+ width: 75vw;
+ padding: 2.5vh 0 0 0;
+ margin: 0 auto;
+ .pagination__container {
+ width: 100%;
+ }
+ }
+ }
+}
diff --git a/src/user/Activity/users.scss b/src/user/Activity/users.scss
index 91897eca..f6cdef81 100644
--- a/src/user/Activity/users.scss
+++ b/src/user/Activity/users.scss
@@ -1,5 +1,5 @@
.activity__main__container {
- margin-left: 18vw;
+ margin-left: 15vw;
.main-navigation {
border-right: 1px solid #cccccc;
}
@@ -29,9 +29,9 @@
display: flex;
flex-direction: row;
flex-wrap: wrap;
+ padding-top: 20px;
.pagination__container {
- position: fixed;
- margin-top: 78vh;
+ width: 100%;
}
.user__wrapper {
display: flex;
@@ -62,4 +62,28 @@
}
}
}
-}
\ No newline at end of file
+}
+
+
+@media (min-width: 320px) and (max-width: 1024px){
+ .activity__main__container {
+ margin: 0;
+ .header__text {
+ margin: 20px 0 0 0;
+ }
+ }
+ .timeline__container {
+ max-width: 100%;
+ margin: 0;
+ width: 100%;
+ padding: 20px;
+ max-height: 100%;
+ ul {
+ width: 100%;
+ }
+ .pagination__container {
+ margin-top: 0;
+ width: 100%;
+ }
+ }
+}
diff --git a/src/user/Admin/Tickets/Filter/Filter.js b/src/user/Admin/Tickets/Filter/Filter.js
index 4caee865..5154df37 100644
--- a/src/user/Admin/Tickets/Filter/Filter.js
+++ b/src/user/Admin/Tickets/Filter/Filter.js
@@ -262,17 +262,19 @@ class Filter extends Component {
/>
-
- {isAdmin && (
-