Updating styling on parts and invoicing modals BOD-404

This commit is contained in:
Patrick Fic
2020-09-22 14:23:27 -07:00
parent 43490bbcba
commit 49f6cfa8c1
16 changed files with 431 additions and 333 deletions

View File

@@ -1,4 +1,4 @@
import { Select, Tag } from "antd";
import { Col, Row, Select, Tag } from "antd";
import React, { useEffect, useState, forwardRef } from "react";
import { HeartOutlined } from "@ant-design/icons";
const { Option } = Select;
@@ -30,7 +30,7 @@ const VendorSearchSelect = (
showSearch
value={option}
style={{
width: 300,
width: "100%",
}}
onChange={setOption}
optionFilterProp="name"
@@ -45,21 +45,27 @@ const VendorSearchSelect = (
name={o.name}
discount={o.discount}
>
<div style={{ display: "flex" }}>
{o.name}
<Tag color="green">{`${o.discount * 100}%`}</Tag>
<HeartOutlined />
</div>
<Row>
<Col span={16}>{o.name}</Col>
<Col span={4}>
<HeartOutlined />
</Col>
<Col span={4}>
<Tag color="green">{`${o.discount * 100}%`}</Tag>
</Col>
</Row>
</Option>
))
: null}
{options
? options.map((o) => (
<Option key={o.id} value={o.id} name={o.name} discount={o.discount}>
<div style={{ display: "flex" }}>
{o.name}
<Tag color="green">{`${o.discount * 100}%`}</Tag>
</div>
<Row>
<Col span={20}>{o.name}</Col>
<Col span={4}>
<Tag color="green">{`${o.discount * 100}%`}</Tag>
</Col>
</Row>
</Option>
))
: null}