Skip to content

Commit e0a7417

Browse files
committed
removed dependency from 'react-responsive'.
1 parent ca3b9fe commit e0a7417

File tree

15 files changed

+69
-228
lines changed

15 files changed

+69
-228
lines changed

package-lock.json

Lines changed: 5 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"react-mde": "^10.2.1",
4444
"react-moment": "^0.9.7",
4545
"react-redux": "^7.2.0",
46-
"react-responsive": "^8.0.3",
4746
"react-router-dom": "^5.1.2",
4847
"react-router-hash-link": "^2.2.2",
4948
"react-scripts": "^3.4.0",

src/user/Activity/Activity.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import OrgAuth from '../dashboard/Community/components/OrgAuth';
1616
import OrgMaintenance from '../dashboard/Community/components/OrgMaintenance';
1717
import Users from './Users';
1818
import ActivityTimeline from './ActivityTimeline';
19-
import { Mobile, Desktop } from '../../utils/breakpoints';
2019
import { Accordion, Button } from 'react-bootstrap';
2120

2221
class Activity extends Component {

src/user/dashboard/Community/CommunitySetting.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import Navigation from '../navigation/navigation'
99
import { connect } from 'react-redux'
1010
import OrgMaintenance from './components/OrgMaintenance';
1111
import Users from '../../Activity/Users'
12-
import { Mobile, Desktop } from '../../../utils/breakpoints';
1312
import { Accordion, Button } from 'react-bootstrap';
1413

1514
class CommunitySetting extends Component {

src/user/dashboard/dashboard.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { connect } from 'react-redux'
1212
import { getAllEvents } from "../../actions/eventAction";
1313
import { getAllPosts } from "../../actions/postAction";
1414
import { getAllProjects } from "../../actions/projectAction";
15-
import { Desktop } from '../../utils/breakpoints';
1615

1716
class Dashboard extends Component {
1817
constructor(props) {
@@ -68,12 +67,10 @@ class Dashboard extends Component {
6867
{this.state.isLoading ? (
6968
notifyUsersLoading()
7069
) : (
71-
<Desktop>
72-
<div className="notify-user">
70+
<div className="dashboard__container__news__notify">
7371
<UpcomingEvents></UpcomingEvents>
7472
<Notifications></Notifications>
7573
</div>
76-
</Desktop>
7774
)}
7875
{this.state.isLoading ? newsFeedLoading() : <NewsFeed allMix={allMix} allProjects={allProjects} allPosts={allPosts} allEvents={allEvents}/>}
7976
</div>

src/user/dashboard/dashboard.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.dashboard__container__news {
77
margin-left: 13vw;
88
flex-grow: 4;
9-
.notify-user {
9+
.dashboard__container__news__notify {
1010
display: flex;
1111
padding: 20px 0px 20px 30px;
1212
}
@@ -23,6 +23,9 @@
2323
}
2424
.dashboard__container__news {
2525
margin-left: 0;
26+
.dashboard__container__news__notify {
27+
display: none;
28+
}
2629
}
2730
}
2831
}

src/user/dashboard/news-feed/news-feed.js

Lines changed: 1 addition & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import Moment from "react-moment";
3939
import EditPostModal from "./popups/EditPost";
4040
import DeletePostModal from "./popups/DeletePost";
4141
import SharePostModal from "./popups/SharePost";
42-
import { Desktop, Mobile } from '../../../utils/breakpoints';
4342

4443
// const reactionVariant = {
4544
// hover: {
@@ -683,61 +682,8 @@ function NewsFeed(props) {
683682

684683
return (
685684
<>
686-
<Desktop>
687-
{createPost}
688-
</Desktop>
689685
<div className="news__feed__container">
690-
<Mobile>
691-
<div className="tabs__container">
692-
<div className="nav__tab">
693-
<ul
694-
className="nav__list__container"
695-
>
696-
<li
697-
className={
698-
type === "All"
699-
? "nav__single__tab selected"
700-
: "nav__single__tab"
701-
}
702-
onClick={handleClick("All")}
703-
>
704-
All
705-
</li>
706-
<li
707-
className={
708-
type === "Post"
709-
? "nav__single__tab selected"
710-
: "nav__single__tab"
711-
}
712-
onClick={handleClick("Post")}
713-
>
714-
Posts
715-
</li>
716-
<li
717-
className={
718-
type === "Event"
719-
? "nav__single__tab selected"
720-
: "nav__single__tab"
721-
}
722-
onClick={handleClick("Event")}
723-
>
724-
Events
725-
</li>
726-
<li
727-
className={
728-
type === "Project"
729-
? "nav__single__tab selected"
730-
: "nav__single__tab"
731-
}
732-
onClick={handleClick("Project")}
733-
>
734-
Projects
735-
</li>
736-
</ul>
737-
</div>
738-
</div>
739-
</Mobile>
740-
<Desktop>
686+
{createPost}
741687
<div className="tabs__container" style={isTop ? navStyles : {}}>
742688
<div className="nav__tab">
743689
<ul
@@ -787,13 +733,8 @@ function NewsFeed(props) {
787733
</ul>
788734
</div>
789735
</div>
790-
</Desktop>
791736
<Row className="post">
792737
<Col xs={12}>
793-
<Mobile>
794-
{createPost}
795-
<br />
796-
</Mobile>
797738
</Col>
798739
<Col xs={12}>
799740
<Row className="content__row">

src/user/dashboard/news-feed/news-feed.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,14 +563,17 @@
563563
padding: 0;
564564
.post-article {
565565
height: auto;
566+
.article {
567+
justify-content: center;
568+
margin-top: 20px;
569+
}
566570
}
567571
}
568572
.cta {
569573
padding-top: 10px;
570574
text-align: center;
571575
button {
572576
padding: 0 1rem;
573-
border-radius: 100px;
574577
}
575578
}
576579
}

src/user/dashboard/settings/SettingContent.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { connect } from 'react-redux';
66
import { getProfile } from '../../../actions/usersAction'
77
import { getOrgProfile } from '../../../actions/orgAction'
88
import './styles/SettingSidebar.scss';
9-
import { Mobile, Desktop } from '../../../utils/breakpoints';
109
import { Accordion, Button } from 'react-bootstrap';
1110

1211
class SettingContent extends Component {

src/user/organization/org-info/org-info.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,22 @@
127127
width: 100%;
128128
margin: auto 2vw;
129129
.org-image {
130+
width: 100%;
131+
flex: 1;
130132
.org-pic {
131133
.orgpic {
132134
width: 120px;
133135
height: 120px;
134136
}
135137
}
136138
}
139+
.org-data {
140+
width: 100%;
141+
flex: 2;
142+
.fa_icon__container {
143+
margin-top: 0;
144+
}
145+
}
137146
}
138147

139148
}

0 commit comments

Comments
 (0)