From 9e9cd270b9ec2b7546155f6a0935b069c08bf852 Mon Sep 17 00:00:00 2001 From: James Morris Date: Thu, 7 Jul 2022 14:48:54 +0200 Subject: [PATCH] New tweaks to the bottom text box --- apps/comments-ui/package.json | 1 + apps/comments-ui/src/components/AddForm.js | 42 ++++++++++++--------- apps/comments-ui/src/components/EditForm.js | 4 +- apps/comments-ui/yarn.lock | 5 +++ 4 files changed, 32 insertions(+), 20 deletions(-) diff --git a/apps/comments-ui/package.json b/apps/comments-ui/package.json index faca1f7465..b62c0f6247 100644 --- a/apps/comments-ui/package.json +++ b/apps/comments-ui/package.json @@ -69,6 +69,7 @@ "serve-handler": "6.1.3", "source-map-explorer": "2.5.2", "tailwindcss": "^3.1.4", + "@headlessui/react": "1.6.5", "webpack-cli": "3.3.12" }, "resolutions": { diff --git a/apps/comments-ui/src/components/AddForm.js b/apps/comments-ui/src/components/AddForm.js index b73115dedf..286d8bb789 100644 --- a/apps/comments-ui/src/components/AddForm.js +++ b/apps/comments-ui/src/components/AddForm.js @@ -1,4 +1,5 @@ // import React, {useState} from 'react'; +import {Transition} from '@headlessui/react'; import React, {useContext, useState} from 'react'; import AppContext from '../AppContext'; import Avatar from './Avatar'; @@ -53,37 +54,42 @@ const AddForm = (props) => { }; return ( -
-
-
- -
-

{member.name ? member.name : 'Anonymous'}

-
Now
-
-
+ +