From 90278aee749dfe8d0312401c4de86f96731e0abe Mon Sep 17 00:00:00 2001 From: talksik Date: Mon, 2 May 2022 09:32:30 -0500 Subject: [PATCH] adding basic form that needs work but have the basics down --- .../src/pages/terminal/newLine/index.tsx | 96 +++++++++++++++++-- packages/desktop/src/styles/index.css | 4 + 2 files changed, 93 insertions(+), 7 deletions(-) diff --git a/packages/desktop/src/pages/terminal/newLine/index.tsx b/packages/desktop/src/pages/terminal/newLine/index.tsx index a74950a..e84a624 100644 --- a/packages/desktop/src/pages/terminal/newLine/index.tsx +++ b/packages/desktop/src/pages/terminal/newLine/index.tsx @@ -1,4 +1,6 @@ -import { Modal } from "antd"; +import { Avatar, Modal } from "antd"; + +import Search from "antd/lib/input/Search"; import { useState } from "react"; export default function NewLineModal({ @@ -8,7 +10,7 @@ export default function NewLineModal({ open: boolean; handleClose: () => void; }) { - const handleOk = () => { + const handleSubmit = () => { // upon success, // make sure that the list of lines updates for this client and others so that it shows this new line // select the line so that it shows up in the line details for this client @@ -21,17 +23,97 @@ export default function NewLineModal({ handleClose(); }; + const onSearch = () => { + console.log("searching for people in database"); + }; + return ( <> + + + + } + className={"gap-5"} > -

Some contents...

-

Some contents...

-

Some contents...

+
+

People

+ + +
+ + {/* search results */} +
+
+ + Jeremy Leon + + jeremyleon@level.com + +
+ + +
+ + + {/* selected people */} +
+

People

+
+ + Jeremy Leon + + jeremyleon@level.com + +
+ + +
+ + +
+

Line Name (optional)

+ +
); diff --git a/packages/desktop/src/styles/index.css b/packages/desktop/src/styles/index.css index cec1389..6edadbe 100644 --- a/packages/desktop/src/styles/index.css +++ b/packages/desktop/src/styles/index.css @@ -33,3 +33,7 @@ button { html { background-color: #00000000; } */ + +.ant-modal-footer { + padding: 0 !important; +}