-
Notifications
You must be signed in to change notification settings - Fork 0
171648125 Add approval table UI #15
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
0fa254c
to
7c4d791
Compare
7c4d791
to
b29f360
Compare
}; | ||
}; | ||
|
||
export const approvalFailed = payload => { |
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; parenthesize the returned value and move it immediately after the =>
arrow-body-style
}; | ||
}; | ||
|
||
export const approvalSuccess = payload => { |
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; parenthesize the returned value and move it immediately after the =>
arrow-body-style
|
||
const basePath = "https://champs-bn-api.herokuapp.com/api/v1"; | ||
|
||
export const approvalRequest = () => { |
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; parenthesize the returned value and move it immediately after the =>
arrow-body-style
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
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
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.
|
||
@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.
Line contains trailing whitespace
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
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.
Line contains trailing whitespace
background-size: cover; | ||
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.
b29f360
to
3826437
Compare
width: 20px; | ||
height: 20px; | ||
background-image: url(../../../../Assets/DashboardAssets/left.png); | ||
background-color: #f7f7f7; |
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 #f7f7f7
should only be used in variable declarations; they should be referred to via variable everywhere else.
font-size: 20px; | ||
width: 20px; | ||
height: 20px; | ||
background-image: url(../../../../Assets/DashboardAssets/left.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
} | ||
|
||
.toggle-menu-button { | ||
position: absolute; |
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-color, background-image, background-position, background-repeat, background-size, border-radius, bottom, box-shadow, font-size, height, position, right, width, z-index
} | ||
} | ||
|
||
.toggle-menu-button { |
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.
Line should be indented 0 spaces, but was indented 2 spaces
Rule set contains (14/10) properties
} | ||
} | ||
} | ||
|
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.
Line contains trailing whitespace
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
height: 22px; | ||
} | ||
|
||
&__menu-setting { |
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.
Line should be indented 2 spaces, but was indented 4 spaces
width: 22px; | ||
height: 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.
Line contains trailing whitespace
} | ||
|
||
&__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
3826437
to
5582460
Compare
@@ -0,0 +1,3 @@ | |||
.content { | |||
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.
Line should be indented 2 spaces, but was indented 4 spaces
} | ||
} | ||
|
||
&__icon { |
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.
Line should be indented 2 spaces, but was indented 4 spaces
cursor: pointer; | ||
} | ||
} | ||
|
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.
Line contains trailing whitespace
&:hover, | ||
&__selected { | ||
background: rgba(255, 255, 255, 0.05); | ||
box-shadow: inset -7px 0 0 0 #f5f5f5; |
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 #f5f5f5
should only be used in variable declarations; they should be referred to via variable everywhere else.
text-decoration: none; | ||
&:hover, | ||
&__selected { | ||
background: rgba(255, 255, 255, 0.05); |
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(255, 255, 255, 0.05)
should only be used in variable declarations; they should be referred to via variable everywhere else.
#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.
Line contains trailing whitespace
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
display: none; | ||
} | ||
|
||
&__menu { |
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.
Line should be indented 2 spaces, but was indented 4 spaces
- add approval table UI. [Finishes#171648125]
5582460
to
10ec19d
Compare
import React from "react"; | ||
import LatestTripsContainer from "../LatestTrips/LatestTrips.jsx"; | ||
|
||
const ViewTrips = () => { |
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
getAllTrips: () => dispatch(getTrips()) | ||
}); | ||
|
||
export default connect(mapStateToProps, mapDispatchToProps)(LatestTrips); |
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,·mapDispatchToProps
with ⏎··mapStateToProps,⏎··mapDispatchToProps⏎
prettier/prettier
.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)
|
||
.grid-container { | ||
display: grid; | ||
grid-template-columns: 170px 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.
Properties should be ordered display, grid-template-areas, grid-template-columns, grid-template-rows, height
Unknown property grid-template-columns
padding: 15px; | ||
} | ||
|
||
.grid-container { |
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.
Line should be indented 0 spaces, but was indented 2 spaces
grid-area: main; | ||
padding: 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.
Line contains trailing whitespace
height: 65px; | ||
background: #f7f7f7; | ||
} | ||
.content { |
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.
Line should be indented 0 spaces, but was indented 2 spaces
z-index: 1; | ||
height: 65px; | ||
background: #f7f7f7; | ||
} |
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
Description
This PR is for creating approval table UI.
Type of change
Please select the relevant option
How Has This Been Tested?
How to test?
N/A
Screnshoot?
N/A
STORY ID
[Finishes #171648125]