Lucas/t 223 i can add comments to companies or people using the right (#181)

* wip

* Implemented comment input text component

* Improved behavior
This commit is contained in:
Lucas Bordeau
2023-06-01 19:49:37 +02:00
committed by GitHub
parent f906533b29
commit bf3097500a
13 changed files with 339 additions and 6 deletions

View File

@ -1,9 +1,19 @@
import { RightDrawerBody } from '../../layout/right-drawer/RightDrawerBody';
import { RightDrawerPage } from '../../layout/right-drawer/RightDrawerPage';
import { RightDrawerTopBar } from '../../layout/right-drawer/RightDrawerTopBar';
import { CommentTextInput } from './CommentTextInput';
export function RightDrawerComments() {
function handleSendComment(text: string) {
console.log(text);
}
return (
<>
<RightDrawerPage>
<RightDrawerTopBar title="Comments" />
</>
<RightDrawerBody>
<CommentTextInput onSend={handleSendComment} />
</RightDrawerBody>
</RightDrawerPage>
);
}