-
Notifications
You must be signed in to change notification settings - Fork 0
171648121 Update user profile #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
4b69dbf
to
57ac509
Compare
45c32c0
to
5c3acdd
Compare
|
||
&__menu-item-title, | ||
.expanded-menu { | ||
margin-left: 24px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties should be ordered color, font-size, font-style, font-weight, line-height, margin-left
height: 45px; | ||
color: #fff; | ||
margin-top: auto; | ||
padding: 15px 0 0 22px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shorthands of length 4
are not allowed. Value was 15px 0 0 22px
border-top: 1px solid #ffffff47; | ||
font-size: 14px; | ||
height: 45px; | ||
color: #fff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color literals like #fff
should only be used in variable declarations; they should be referred to via variable everywhere else.
|
||
&__menu-setting { | ||
border-top: 1px solid #ffffff47; | ||
font-size: 14px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties should be ordered border-top, color, font-size, height, margin-top, padding
} | ||
|
||
&__icon { | ||
width: 22px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties should be ordered height, width
background: radial-gradient( | ||
1355.92% 61.47% at 49.49% 50.08%, | ||
#d17af0 0%, | ||
#2a96cc 100% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color literals like #2a96cc
should only be used in variable declarations; they should be referred to via variable everywhere else.
width: 170px; | ||
background: radial-gradient( | ||
1355.92% 61.47% at 49.49% 50.08%, | ||
#d17af0 0%, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color literals like #d17af0
should only be used in variable declarations; they should be referred to via variable everywhere else.
} | ||
|
||
&__menu { | ||
display: flex; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties should be ordered background, display, flex-direction, height, list-style, margin, padding-left, width
height: 100%; | ||
color: #fff; | ||
font-family: "Roboto", sans-serif; | ||
@media (max-width: 480px) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@media declaration should be preceded by an empty line
.sidebar { | ||
position: fixed; | ||
height: 100%; | ||
color: #fff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color literals like #fff
should only be used in variable declarations; they should be referred to via variable everywhere else.
5c3acdd
to
f180ebf
Compare
class Users extends Component { | ||
state = { selectedItem: "Users" }; | ||
|
||
render() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing JSDoc comment require-jsdoc
import Header from "../Shared/Dashboard/Header/Header.jsx"; | ||
import "../Shared/Dashboard/Dashboard.scss"; | ||
|
||
class Users extends Component { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing JSDoc comment require-jsdoc
import { string, bool } from "prop-types"; | ||
import "./Sidebar.scss"; | ||
|
||
function SidebarItem(props) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing JSDoc comment require-jsdoc
padding-left: 22px; | ||
margin-top: 20px; | ||
text-decoration: none; | ||
&:hover, &__selected { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each selector in a comma sequence should be on its own single line
Rule declaration should be preceded by an empty line
@@ -0,0 +1,85 @@ | |||
.sidebar { | |||
position: fixed; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties should be ordered color, font-family, height, position
import "./Sidebar.scss"; | ||
|
||
const Sidebar = ({ onChange, selectedItem }) => { | ||
const onItemClicked = item => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected block statement surrounding arrow body; move the returned value immediately after the =>
arrow-body-style
margin-right: 12px; | ||
} | ||
} | ||
@media (max-width: 480px) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@media declaration should be preceded by an empty line
margin-left: 12px; | ||
margin-right: 12px; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@media declaration should be followed by an empty line
f180ebf
to
f8293c7
Compare
no-repeat #f7f7f7; | ||
z-index: 1000; | ||
border-radius: 50%; | ||
box-shadow: 0 0 2px 1px #fff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color literals like #fff
should only be used in variable declarations; they should be referred to via variable everywhere else.
font-weight: 900; | ||
font-size: 16px; | ||
line-height: 19px; | ||
color: #ffffff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color literals like #ffffff
should only be used in variable declarations; they should be referred to via variable everywhere else.
} | ||
.icon-styles { | ||
margin-left: 12px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rule declaration should be followed by an empty line
} | ||
.title { | ||
margin-left: 36px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rule declaration should be followed by an empty line
@media (max-width: 768px) { | ||
.name { | ||
display: "none"; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rule declaration should be followed by an empty line
line-height: 35px; | ||
color: rgba(0, 1, 0, 0.5); | ||
margin: auto auto auto 14px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rule declaration should be followed by an empty line
f8293c7
to
b2c795c
Compare
} | ||
|
||
&:hover { | ||
background-color: #687cd7; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color literals like #687cd7
should only be used in variable declarations; they should be referred to via variable everywhere else.
background-image: url(../../../../Assets/DashboardAssets/right.png); | ||
|
||
&:hover { | ||
background-color: #687cd7; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color literals like #687cd7
should only be used in variable declarations; they should be referred to via variable everywhere else.
box-shadow: 0 0 2px 1px #fff; | ||
|
||
@media (max-width: 1024px) { | ||
background-image: url(../../../../Assets/DashboardAssets/right.png); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
URLs should be enclosed in quotes
font-weight: 700; | ||
font-size: 28px; | ||
line-height: 35px; | ||
color: rgba(0, 1, 0, 0.5); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color literals like rgba(0, 1, 0, 0.5)
should only be used in variable declarations; they should be referred to via variable everywhere else.
width: 2px; | ||
} | ||
.title { | ||
font-family: Roboto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties should be ordered color, font-family, font-size, font-style, font-weight, line-height, margin
line-height: 21px; | ||
text-align: right; | ||
|
||
color: rgba(0, 0, 0, 0.5); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color literals like rgba(0, 0, 0, 0.5)
should only be used in variable declarations; they should be referred to via variable everywhere else.
} | ||
|
||
.name { | ||
font-family: Roboto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties should be ordered color, font-family, font-size, font-style, font-weight, line-height, text-align
border-radius: 50px; | ||
margin-left: 14px; | ||
margin-right: 14px; | ||
border: "1px solid #DFE0EB"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color #DFE0EB
should be written as #dfe0eb
} | ||
|
||
.avatar { | ||
height: 35px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties should be ordered border, border-radius, height, margin-left, margin-right, width
@@ -0,0 +1,71 @@ | |||
.logo { | |||
color: #fff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color literals like #fff
should only be used in variable declarations; they should be referred to via variable everywhere else.
b2c795c
to
ee61873
Compare
.grid-container { | ||
grid-template-columns: 1fr; | ||
grid-template-rows: 72px 1fr; | ||
grid-template-areas: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Colon after property should be followed by one space
@media screen and (max-width: 480px) { | ||
.grid-container { | ||
grid-template-columns: 1fr; | ||
grid-template-rows: 72px 1fr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unknown property grid-template-rows
fr units not allowed on grid-template-rows
; must be one of (%, Hz, ch, cm, deg, dpcm, dpi, dppx, em, ex, grad, in, kHz, mm, ms, pc, pt, px, q, rad, rem, s, turn, vh, vmax, vmin, vw)
|
||
@media screen and (max-width: 480px) { | ||
.grid-container { | ||
grid-template-columns: 1fr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties should be ordered grid-template-areas, grid-template-columns, grid-template-rows
Unknown property grid-template-columns
fr units not allowed on grid-template-columns
; must be one of (%, Hz, ch, cm, deg, dpcm, dpi, dppx, em, ex, grad, in, kHz, mm, ms, pc, pt, px, q, rad, rem, s, turn, vh, vmax, vmin, vw)
height: 100vh; | ||
|
||
@media (max-width: 1024px) { | ||
grid-template-columns: 65px auto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unknown property grid-template-columns
display: grid; | ||
grid-template-columns: 170px auto; | ||
grid-template-rows: 65px auto; | ||
grid-template-areas: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Colon after property should be followed by one space
import Content from "./Content/Content.jsx"; | ||
import "./Dashboard.scss"; | ||
|
||
const Dashboard = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected block statement surrounding arrow body; move the returned value immediately after the =>
arrow-body-style
import React from "react"; | ||
import "./Content.scss"; | ||
|
||
function ContentComponent() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing JSDoc comment require-jsdoc
font-weight: 900; | ||
font-size: 18px; | ||
line-height: 21px; | ||
color: #000000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color literals like #000000
should only be used in variable declarations; they should be referred to via variable everywhere else.
} | ||
|
||
.label-field { | ||
font-family: Roboto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties should be ordered color, font-family, font-size, font-style, font-weight, line-height, width
.profile-details { | ||
display: grid; | ||
gap: 15px; | ||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unknown property grid-template-columns
ee61873
to
3eb5aa7
Compare
|
||
.profile-details { | ||
display: grid; | ||
gap: 15px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unknown property gap
font-weight: normal; | ||
font-size: 18px; | ||
line-height: 21px; | ||
color: rgba(0, 0, 0, 0.6); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color literals like rgba(0, 0, 0, 0.6)
should only be used in variable declarations; they should be referred to via variable everywhere else.
|
||
.content-container input[type="email"]::placeholder, | ||
input[type="text"]::placeholder { | ||
font-family: Roboto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties should be ordered color, font-family, font-size, font-style, font-weight, line-height, width
3eb5aa7
to
dc26de1
Compare
changeValues: changeFieldValues, | ||
fetchUserProfileDetail: fetchUserProfileDetails, | ||
updateUserProfileData: updateUserProfileDetails | ||
})(Profile); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace }
with ··}⏎
prettier/prettier
export default connect(mapStateToProps, { | ||
changeValues: changeFieldValues, | ||
fetchUserProfileDetail: fetchUserProfileDetails, | ||
updateUserProfileData: updateUserProfileDetails |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insert ··
prettier/prettier
|
||
export default connect(mapStateToProps, { | ||
changeValues: changeFieldValues, | ||
fetchUserProfileDetail: fetchUserProfileDetails, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insert ··
prettier/prettier
}); | ||
|
||
export default connect(mapStateToProps, { | ||
changeValues: changeFieldValues, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insert ··
prettier/prettier
user: state.profile.user | ||
}); | ||
|
||
export default connect(mapStateToProps, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace mapStateToProps,
with ⏎··mapStateToProps,⏎·
prettier/prettier
}; | ||
} | ||
|
||
componentDidMount() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing JSDoc comment require-jsdoc
import "../Shared/Dashboard/Dashboard.scss"; | ||
|
||
class Profile extends Component { | ||
constructor(props) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing JSDoc comment require-jsdoc
import "./Profile.scss"; | ||
import "../Shared/Dashboard/Dashboard.scss"; | ||
|
||
class Profile extends Component { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing JSDoc comment require-jsdoc
import "../Shared/Dashboard/Dashboard.scss"; | ||
|
||
class Users extends Component { | ||
constructor(props) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing JSDoc comment require-jsdoc
background-image: url(../../../../Assets/DashboardAssets/right.png); | ||
|
||
&:hover { | ||
background-color: #687cd7; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color literals like #687cd7
should only be used in variable declarations; they should be referred to via variable everywhere else.
Description
Users are able to amend/edit their profiles depending on change of preference to the full disclosure of the individual user
Type of change
Please select the relevant option
How Has This Been Tested?
How to Test
Setup:
npm i
to install dependenciesnpm run dev
commandTest:
Screenshots or GIFs

Profile page
STORY ID
[Finishes #171648121]