From 53aaa57b2bffaec445d4727a03d8047e00dccf28 Mon Sep 17 00:00:00 2001 From: Thomas Schallert Date: Tue, 14 Mar 2023 06:50:29 +0100 Subject: [PATCH] fix: add props for user --- .../components/form/TextBox.tsx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/packages/design-system-component-library-yeahyeahyeah/components/form/TextBox.tsx b/packages/design-system-component-library-yeahyeahyeah/components/form/TextBox.tsx index 9254b44..1797d7b 100644 --- a/packages/design-system-component-library-yeahyeahyeah/components/form/TextBox.tsx +++ b/packages/design-system-component-library-yeahyeahyeah/components/form/TextBox.tsx @@ -10,7 +10,7 @@ import { IconLink } from '../link/IconLink'; import Link from 'next/link'; export interface ITextBoxProps { - user?: Pick; + user?: Pick & { username: string; href: string }; form: Pick; inputValue: string; setInputValue: React.Dispatch>; @@ -27,11 +27,8 @@ export const TextBox: React.FC = ({ startParagraph = 'Schreib deinen ersten Mumble, oder folge einem User', user = { label: 'Display Name', - username: { - label: 'Username', - href: '#', - type: 'username', - }, + username: 'Username', + href: '/', avatar: { src: 'https://media.giphy.com/media/cfuL5gqFDreXxkWQ4o/giphy.gif', alt: 'Alter Tag', @@ -85,10 +82,10 @@ export const TextBox: React.FC = ({ {variant === 'write' && ( = ({ {variant === 'inline' && (