-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
42 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React, { Component } from "react"; | ||
import PropTypes from "prop-types"; | ||
import styled from "styled-components"; | ||
import { applyTheme } from "../../../utils"; | ||
|
||
const StyledDiv = styled.div` | ||
color: #333333; | ||
`; | ||
|
||
class MiniCart extends Component { | ||
static propTypes = { | ||
|
||
}; | ||
|
||
static defaultProps = { | ||
|
||
}; | ||
|
||
render() { | ||
return ( | ||
<StyledDiv>TEST</StyledDiv> | ||
); | ||
} | ||
} | ||
|
||
export default MiniCart; |
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,3 @@ | ||
### MiniCart | ||
|
||
Document component here. See https://react-styleguidist.js.org/docs/documenting.html |
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,11 @@ | ||
import React from "react"; | ||
import renderer from "react-test-renderer"; | ||
import { shallow } from "enzyme"; | ||
import MiniCart from "./MiniCart"; | ||
|
||
test("basic snapshot", () => { | ||
const component = renderer.create(<MiniCart />); | ||
|
||
const tree = component.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 @@ | ||
export { default } from "./MiniCart"; |
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