Skip to content

Commit

Permalink
Added classnames module
Browse files Browse the repository at this point in the history
  • Loading branch information
yTakkar committed Jun 18, 2018
1 parent cdcfa07 commit eb59044
Show file tree
Hide file tree
Showing 133 changed files with 308 additions and 234 deletions.
2 changes: 1 addition & 1 deletion dist/js/bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"bcrypt-nodejs": "^0.0.3",
"body-parser": "^1.18.2",
"catchify": "^2.6.1",
"classnames": "^2.2.6",
"client-sessions": "^0.8.0",
"cookie-parser": "^1.4.3",
"dotenv": "^4.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ exports[`Edit-Profile Component should match snapshot 1`] = `
className="edit_update"
>
<span
className="emoji_span "
className="emoji_span"
data-tip="Add emojis"
onClick={[Function]}
>
Expand All @@ -154,14 +154,14 @@ exports[`Edit-Profile Component should match snapshot 1`] = `
</div>
<a
className="pri_btn edit_done "
className="pri_btn edit_done"
href="#"
onClick={[Function]}
>
Update profile
</a>
<a
className="sec_btn resend_vl "
className="sec_btn resend_vl"
href="#"
onClick={[Function]}
>
Expand Down Expand Up @@ -263,7 +263,7 @@ exports[`Edit-Profile Component should match snapshot 1`] = `
value=""
/>
<a
className="sec_btn "
className="sec_btn"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Array [
value="programmer"
/>
<a
className="sec_btn "
className="sec_btn"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`ResendVL Component should match snapshot and show SecondaryButton 1`] = `
<a
className="sec_btn resend_vl "
className="sec_btn resend_vl"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports[`ExploreGroupsList Component should match snapshot 1`] = `
className="m_bottom"
>
<a
className="pri_btn follow "
className="pri_btn follow"
href="#"
onClick={[Function]}
>
Expand Down Expand Up @@ -70,7 +70,7 @@ exports[`ExploreGroupsList Component should match snapshot when mutualMembersCou
className="m_bottom"
>
<a
className="pri_btn follow "
className="pri_btn follow"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ exports[`ExpGroups Component should match snapshot 1`] = `
className="m_bottom"
>
<a
className="pri_btn follow "
className="pri_btn follow"
href="#"
onClick={[Function]}
>
Expand Down Expand Up @@ -99,7 +99,7 @@ exports[`ExpGroups Component should match snapshot 1`] = `
className="m_bottom"
>
<a
className="pri_btn follow "
className="pri_btn follow"
href="#"
onClick={[Function]}
>
Expand Down
3 changes: 2 additions & 1 deletion src/components/explore/groups/explore-groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Nothing from '../../others/nothing'
import ExploreGroupsList from './explore-groups-list'
import IsLoading from '../../others/isLoading'
import { cLoading } from '../../../utils/utils'
import classNames from 'classnames'

class ExploreGroups extends Component {

Expand Down Expand Up @@ -38,7 +39,7 @@ class ExploreGroups extends Component {
<IsLoading loading={loading} />

<div
className={`m_div ${cLoading(loading)}`}
className={classNames('m_div', cLoading(loading))}
style={{ marginTop: 0 }}
>
<div
Expand Down
4 changes: 2 additions & 2 deletions src/components/explore/photos/explore-photos.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { getPhotosToExplore } from '../../../actions/explore'
import ExplorePhotoGallery from './photo-gallery'
import IsLoading from '../../others/isLoading'
import { cLoading } from '../../../utils/utils'
import classNames from 'classnames'

class ExpPhotos extends Component {

Expand All @@ -27,11 +28,10 @@ class ExpPhotos extends Component {
<Title value='Explore photos' />

<FadeIn duration='300ms'>

<IsLoading loading={loading} />

<div
className={`m_div explore_photos ${cLoading(loading)}`}
className={classNames('m_div', 'explore_photos', cLoading(loading))}
style={{ marginTop: 0 }}
>
<ExplorePhotoGallery/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports[`ExploreUsersList Component should match snapshot 1`] = `
className="m_bottom"
>
<a
className="pri_btn follow "
className="pri_btn follow"
href="#"
onClick={[Function]}
>
Expand Down Expand Up @@ -70,7 +70,7 @@ exports[`ExploreUsersList Component should match snapshot when mutualUsersCount
className="m_bottom"
>
<a
className="pri_btn follow "
className="pri_btn follow"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ exports[`ExpUsers Component should match snapshot 1`] = `
className="m_bottom"
>
<a
className="pri_btn follow "
className="pri_btn follow"
href="#"
onClick={[Function]}
>
Expand Down Expand Up @@ -99,7 +99,7 @@ exports[`ExpUsers Component should match snapshot 1`] = `
className="m_bottom"
>
<a
className="pri_btn follow "
className="pri_btn follow"
href="#"
onClick={[Function]}
>
Expand Down
3 changes: 2 additions & 1 deletion src/components/explore/users/explore-users.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import ExploreUsersList from './explore-users-list'
import Nothing from '../../others/nothing'
import IsLoading from '../../others/isLoading'
import { cLoading } from '../../../utils/utils'
import classNames from 'classnames'

class ExploreUsers extends Component {

Expand Down Expand Up @@ -38,7 +39,7 @@ class ExploreUsers extends Component {
<IsLoading loading={loading} />

<div
className={`m_div ${cLoading(loading)}`}
className={classNames('m_div', cLoading(loading))}
style={{ marginTop: 0 }}
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports[`ChangeAdminList Component should match snapshot 1`] = `
className="modal_ff"
>
<a
className="pri_btn "
className="pri_btn"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Array [
className="modal_ff"
>
<a
className="pri_btn "
className="pri_btn"
href="#"
onClick={[Function]}
>
Expand Down Expand Up @@ -170,7 +170,7 @@ Array [
className="modal_bottom"
>
<a
className="pri_btn "
className="pri_btn"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
exports[`CreateGroupActions Component should match snapshot 1`] = `
Array [
<a
className="sec_btn "
className="sec_btn"
href="#"
onClick={[MockFunction]}
>
Back
</a>,
<a
className="pri_btn c_g_update "
className="pri_btn c_g_update"
href="#"
onClick={[MockFunction]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ exports[`CreateGroupModal Component should match snapshot 1`] = `
className="e_p_bottom modal_bottom"
>
<span
className="emoji_span "
className="emoji_span"
data-tip="Add emojis"
onClick={[Function]}
>
Expand All @@ -85,7 +85,7 @@ exports[`CreateGroupModal Component should match snapshot 1`] = `
</div>
<a
className="sec_btn "
className="sec_btn"
href="#"
onClick={[MockFunction]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`CreateGroup Component should match snapshot 1`] = `
Create public or private group of your interest with people you know.
</span>
<a
className="sec_btn "
className="sec_btn"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`JoinGroup Component should match snapshot and show <Join/> when joined
className="pro_ff"
>
<a
className="pri_btn follow "
className="pri_btn follow"
href="#"
onClick={[Function]}
>
Expand All @@ -33,7 +33,7 @@ exports[`JoinGroup Component should match snapshot and show <Leave/> when joined
className="pro_ff"
>
<a
className="pri_btn unfollow "
className="pri_btn unfollow"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports[`InviteList Component should match snapshot 1`] = `
className="modal_ff"
>
<a
className="pri_btn invite_btn "
className="pri_btn invite_btn"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Array [
className="modal_ff"
>
<a
className="pri_btn invite_btn "
className="pri_btn invite_btn"
href="#"
onClick={[Function]}
>
Expand Down Expand Up @@ -170,7 +170,7 @@ Array [
className="modal_bottom"
>
<a
className="pri_btn "
className="pri_btn"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Join Component should match snapshot 1`] = `
<a
className="pri_btn follow "
className="pri_btn follow"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Leave Component should match snapshot 1`] = `
<a
className="pri_btn unfollow "
className="pri_btn unfollow"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ exports[`EditGroup Component should match snapshot 1`] = `
className="g_e_save"
>
<span
className="emoji_span "
className="emoji_span"
data-tip="Add emojis"
onClick={[Function]}
>
Expand All @@ -117,7 +117,7 @@ exports[`EditGroup Component should match snapshot 1`] = `
</div>
<a
className="sec_btn g_e_save_btn "
className="sec_btn g_e_save_btn"
href="#"
onClick={[Function]}
>
Expand Down
5 changes: 4 additions & 1 deletion src/components/group/sections/gallery/gallery-s.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import End from '../../../others/end'
import { bottomScroll, cLoading } from '../../../../utils/utils'
import GroupPhotos from './photos'
import IsLoading from '../../../others/isLoading'
import classNames from 'classnames'

class GroupGallery extends Component {

Expand Down Expand Up @@ -43,7 +44,9 @@ class GroupGallery extends Component {

<IsLoading loading={loading} />

<div className={`pro_senapati photos_senapati ${cLoading(loading)}`}>
<div
className={classNames('pro_senapati', 'photos_senapati', cLoading(loading))}
>
<GroupPhotos/>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ exports[`GroupMembers Component should match snapshot 1`] = `
</div>
</span>
<a
className="sec_btn "
className="sec_btn"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ exports[`MembersList Component should match snapshot with <RemoveMember/> 1`] =
</div>
</span>
<a
className="sec_btn "
className="sec_btn"
href="#"
onClick={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`RemoveMember Component should match snapshot 1`] = `
<a
className="sec_btn "
className="sec_btn"
href="#"
onClick={[Function]}
>
Expand Down
Loading

0 comments on commit eb59044

Please sign in to comment.