-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathselectors.js
39 lines (36 loc) · 1.02 KB
/
selectors.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import React from "react";
import SizeDropDown from "./sizeDropDown";
import QuantityDropDown from "./quantitySelect";
import { Button } from "react-bootstrap";
import {
CartPlus,
Heart
} from "react-bootstrap-icons";
const Selectors = ({
style,
size,
changeHandler,
submitCart,
warningSelectSize,
}) => {
return (
<>
{warningSelectSize ? <span className='warning-select-size'>Please Select a Size</span> : null}
<SizeDropDown
variant="outline-secondary"
style={style}
changeHandler={changeHandler}
sizeSelected={size}
/>
<QuantityDropDown skus={style.skus} size={size} />
<Button variant="outline-secondary" size='lg' className="addToCart" onClick={submitCart} id='cart-click'>
Add to Bag
<CartPlus style={{float: 'right', paddingTop: '4px'}}/>
</Button>
<Button variant="outline-secondary" className="favorite-button" id='favorite-click' size='lg'>
<Heart/>
</Button>
</>
);
};
export default Selectors;