feat(frontend): add new field, new field entry, save buttons to edit profile page
This commit is contained in:
parent
459e525415
commit
e5b4f78998
4 changed files with 120 additions and 19 deletions
|
@ -2,6 +2,7 @@ import { ChangeEventHandler } from "react";
|
|||
|
||||
export type Props = {
|
||||
contrastBackground?: boolean;
|
||||
prevValue?: string;
|
||||
defaultValue?: string;
|
||||
value?: string;
|
||||
onChange?: ChangeEventHandler<HTMLInputElement>;
|
||||
|
@ -15,6 +16,7 @@ export default function TextInput(props: Props) {
|
|||
return (
|
||||
<input
|
||||
type="text"
|
||||
data-prev-value={props.prevValue ?? props.value}
|
||||
className={`p-1 lg:p-2 rounded-md ${bg} border-slate-300 text-black dark:border-slate-900 dark:text-white`}
|
||||
defaultValue={props.defaultValue}
|
||||
value={props.value}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue