@sellout/ui 0.0.1 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/ui",
3
- "version": "0.0.1",
3
+ "version": "0.0.5",
4
4
  "dependencies": {
5
5
  "@fortawesome/fontawesome-svg-core": "^1.2.27",
6
6
  "@fortawesome/free-regular-svg-icons": "^5.12.1",
@@ -10,7 +10,7 @@
10
10
  "@fortawesome/pro-solid-svg-icons": "^5.12.1",
11
11
  "@fortawesome/react-fontawesome": "^0.1.9",
12
12
  "@rehooks/component-size": "^1.0.3",
13
- "@sellout/utils": "^0.0.1",
13
+ "@sellout/utils": "^0.0.5",
14
14
  "@testing-library/jest-dom": "^4.2.4",
15
15
  "@testing-library/react": "^9.5.0",
16
16
  "@testing-library/user-event": "^7.2.1",
@@ -27,6 +27,7 @@
27
27
  "typescript": "^3.7.5"
28
28
  },
29
29
  "scripts": {
30
+ "prepare": "npm run build",
30
31
  "start": "react-scripts start",
31
32
  "build": "react-scripts build",
32
33
  "test": "react-scripts test",
@@ -58,5 +59,5 @@
58
59
  "@types/styled-components": "^5.0.1",
59
60
  "csvtojson": "^2.0.10"
60
61
  },
61
- "gitHead": "5f577126fcc59699bc5447b62f0ee56aa4b9759b"
62
+ "gitHead": "5af90cec2aeb461ce24ab03508bd8cb705de8ae3"
62
63
  }
@@ -1,9 +1,8 @@
1
- import React, { Fragment, useState } from "react";
1
+ import React from "react";
2
2
  import styled from "styled-components";
3
3
  import * as Polished from "polished";
4
4
  import { Colors } from "../Colors";
5
5
  import Icon, { Icons } from "./Icon";
6
- import * as Price from '@sellout/utils/.dist/price'
7
6
 
8
7
  const Container = styled.div`
9
8
  position: relative;
@@ -4,6 +4,7 @@ import * as Polished from "polished";
4
4
  import AnimateHeight from "react-animate-height";
5
5
  import { Colors } from "../Colors";
6
6
  import Counter, { CounterProps } from './Counter';
7
+ import * as PriceUtil from '@sellout/utils/.dist/price';
7
8
  // import Icon from "./Icon";
8
9
 
9
10
  type RowProps = {
@@ -123,7 +124,7 @@ export default function Product({
123
124
  <Row justify="space-between">
124
125
  <Column>
125
126
  <Title>{title}</Title>
126
- <Price>{price}</Price>
127
+ <Price>{PriceUtil.output(price)}</Price>
127
128
  </Column>
128
129
  <Counter
129
130
  value={value}
@@ -136,7 +137,7 @@ export default function Product({
136
137
  <Row>
137
138
  {subtitle && <Subtitle>{subtitle}</Subtitle>}
138
139
  {(() => {
139
- if(!description) return;
140
+ if (!description) return;
140
141
 
141
142
  return (
142
143
  <Fragment>
@@ -1,8 +1,6 @@
1
1
  import React, { useState } from 'react';
2
2
  import styled from 'styled-components';
3
- import { action } from '@storybook/addon-actions';
4
3
  import Counter from '../components/Counter';
5
- import { Icons } from '../components/Icon';
6
4
 
7
5
  const Container = styled.div`
8
6
  width: 370px;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import { action } from '@storybook/addon-actions';
4
3
  import Loader, { LoaderSizes } from '../components/Loader';
5
4
  import { Colors } from "../Colors";
6
5
 
@@ -1,8 +1,6 @@
1
1
  import React, { useState } from 'react';
2
2
  import styled from 'styled-components';
3
- import { action } from '@storybook/addon-actions';
4
3
  import Product from '../components/Product';
5
- import { Icons } from '../components/Icon';
6
4
  import { Colors } from '../Colors';
7
5
 
8
6
  const Container = styled.div`