-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(requests-table):Implement requests table [Finishes #171380698]
- Loading branch information
1 parent
bcf9180
commit a4ea2ab
Showing
7 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* eslint-disable no-undef */ | ||
import React from 'react'; | ||
import renderer from 'react-test-renderer'; | ||
import { cleanup } from '@testing-library/react'; | ||
import SectionHeader from '../components/SectionHeader/SectionHeader'; | ||
|
||
describe('<SectionHeader/>', () => { | ||
afterEach(cleanup); | ||
it('Should match the SectionHeader component snapshot', () => { | ||
const tree = renderer.create(<SectionHeader />).toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<SectionHeader/> Should match the SectionHeader component snapshot 1`] = ` | ||
<p | ||
className="MuiTypography-root makeStyles-title-1 MuiTypography-body1" | ||
> | ||
Trip requests | ||
</p> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import Typography from '@material-ui/core/Typography'; | ||
|
||
const useStyles = makeStyles({ | ||
title: { | ||
borderWidth: 1, | ||
borderColor: '#00A799', | ||
color: '#484848', | ||
backgroundColor: '#00a7990f', | ||
padding: 24, | ||
fontSize: 14, | ||
fontFamily: 'Roboto', | ||
fontWeight: 500, | ||
}, | ||
}); | ||
|
||
const SectionHeader = () => { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<Typography className={classes.title}> | ||
Trip requests | ||
</Typography> | ||
); | ||
}; | ||
|
||
export default SectionHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
$color: #00A799; | ||
$text: #FFFFFF; | ||
$text: #484848; | ||
|
||
body { | ||
background-color: $color; | ||
background-color: #ffffff; | ||
color: $text; | ||
} |