added scanners

main
alex 2023-05-21 22:55:07 +02:00
parent e690bbaf63
commit 100e2c36cc
1 changed files with 14 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import { Button, Space, Table } from "antd"; import { Button, Popover, QRCode, Space, Table } from "antd";
import { MyAvatar } from "../../utils"; import { MyAvatar } from "../../utils";
import { PlusOutlined } from "@ant-design/icons"; import { PlusOutlined } from "@ant-design/icons";
@ -38,12 +38,20 @@ const data = [
export default function Scanners() { export default function Scanners() {
return ( return (
<> <>
<Space> <h1 style={{ fontWeight: "bold", float: "left" }}>Scanners (0)</h1>
<h1 style={{ fontWeight: "bold" }}>Scanners (0)</h1>
<Button type="primary" icon={<PlusOutlined />}> <Popover
Add Scanner title="Scan this on mobile"
content={<QRCode value={"test"} bordered={false} />}
>
<Button
style={{ float: "right" }}
type="primary"
icon={<PlusOutlined />}
>
Add scanner
</Button> </Button>
</Space> </Popover>
<Table columns={columns} dataSource={data} /> <Table columns={columns} dataSource={data} />
</> </>