-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improve components * Add chroma-js * Implement dark mode * Add icons * Fix tsc error * Update snapshot
- Loading branch information
Showing
43 changed files
with
566 additions
and
239 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
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
34 changes: 32 additions & 2 deletions
34
src/components/atoms/Container/__snapshots__/index.spec.tsx.snap
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,37 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Container snapshot 1`] = ` | ||
<styled.section> | ||
<StyledComponent | ||
forwardedComponent={ | ||
Object { | ||
"$$typeof": Symbol(react.forward_ref), | ||
"attrs": Array [], | ||
"componentStyle": ComponentStyle { | ||
"componentId": "sc-bdVaJa", | ||
"isStatic": false, | ||
"rules": Array [ | ||
" | ||
margin: 0 auto; | ||
max-width: 984px; | ||
padding: 0px ", | ||
[Function], | ||
"; | ||
padding-top: 0; | ||
", | ||
], | ||
}, | ||
"displayName": "styled.div", | ||
"foldedComponentIds": Array [], | ||
"render": [Function], | ||
"styledComponentId": "sc-bdVaJa", | ||
"target": "div", | ||
"toString": [Function], | ||
"warnTooManyClasses": [Function], | ||
"withComponent": [Function], | ||
} | ||
} | ||
forwardedRef={null} | ||
> | ||
... | ||
</styled.section> | ||
</StyledComponent> | ||
`; |
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,17 +1,10 @@ | ||
import * as React from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
const Wrapper = styled.section` | ||
const Container = styled.div` | ||
margin: 0 auto; | ||
max-width: 984px; | ||
padding: 0px ${props => props.theme.spaces[5]} ${props => props.theme.spaces[4]}; | ||
padding: 0px ${props => props.theme.spaces[5]}; | ||
padding-top: 0; | ||
`; | ||
|
||
export interface ContainerProps { | ||
children: React.ReactNode; | ||
} | ||
|
||
const Container = ({ children }: ContainerProps) => <Wrapper>{children}</Wrapper>; | ||
|
||
export default Container; |
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
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
2 changes: 1 addition & 1 deletion
2
...putItem/__snapshots__/index.spec.tsx.snap → ...ormItem/__snapshots__/index.spec.tsx.snap
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
6 changes: 3 additions & 3 deletions
6
...onents/molecules/InputItem/index.spec.tsx → ...ponents/molecules/FormItem/index.spec.tsx
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,11 +1,11 @@ | ||
import * as React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
import toJson from 'enzyme-to-json'; | ||
import InputItem from '.'; | ||
import FormItem from '.'; | ||
|
||
describe('InputItem', () => { | ||
describe('FormItem', () => { | ||
it('snapshot', () => { | ||
const tree = shallow(<InputItem title="title">...</InputItem>); | ||
const tree = shallow(<FormItem title="title">...</FormItem>); | ||
expect(toJson(tree)).toMatchSnapshot(); | ||
}); | ||
}); |
Oops, something went wrong.