Skip to content

Commit

Permalink
feat: rename ActionIncomplet to CheckoutActionInComplete
Browse files Browse the repository at this point in the history
  • Loading branch information
willopez committed Jul 13, 2018
1 parent 532d70a commit ad1f5fe
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 38 deletions.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion package/src/components/ActionIncomplete/v1/index.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import PropTypes from "prop-types";
import styled from "styled-components";
import { applyTheme } from "../../../utils";

const ActionIncompleteContainer = styled.div`
const CheckoutActionIncompleteContainer = styled.div`
color: ${applyTheme("color_black35")};
font-family: ${applyTheme("font_family")};
font-size: ${applyTheme("font_size_small")}
`;

class ActionIncomplete extends Component {
class CheckoutActionIncomplete extends Component {
static propTypes = {
/**
* The incomplete action name
Expand All @@ -24,12 +25,12 @@ class ActionIncomplete extends Component {
const { label, stepNumber } = this.props;

return (
<ActionIncompleteContainer>
<CheckoutActionIncompleteContainer>
<span>{stepNumber}.&nbsp;</span>
<span>{label}</span>
</ActionIncompleteContainer>
</CheckoutActionIncompleteContainer>
);
}
}

export default ActionIncomplete;
export default CheckoutActionIncomplete;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### CheckoutActionIncomplete

#### Overview
The `CheckoutActionIncomplete` component will be used to display an incomplete step in the checkout process.

#### Basic usage
```jsx
<CheckoutActionIncomplete label="Shipping information" stepNumber={2}/>
```
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from "react";
import renderer from "react-test-renderer";
import ActionIncomplete from "./ActionIncomplete";
import CheckoutActionIncomplete from "./CheckoutActionIncomplete";

test("basic snapshot", () => {
const component = renderer.create((
<ActionIncomplete label="Shipping information" stepNumber={2} />
<CheckoutActionIncomplete label="Shipping information" stepNumber={2} />
));

const tree = component.toJSON();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "./CheckoutActionIncomplete";
2 changes: 1 addition & 1 deletion styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ module.exports = {
name: "Cart"
}),
generateSection({
componentNames: ["ActionIncomplete"],
componentNames: ["CheckoutActionIncomplete"],
content: "styleguide/src/sections/Checkout.md",
name: "Checkout"
}),
Expand Down

0 comments on commit ad1f5fe

Please sign in to comment.