mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
can add existing courses
This commit is contained in:
@@ -6,12 +6,14 @@ export default function TextInput({
|
||||
label,
|
||||
className,
|
||||
isTextArea = false,
|
||||
inputRef = undefined,
|
||||
}: {
|
||||
value: string;
|
||||
setValue: (newValue: string) => void;
|
||||
label: string;
|
||||
className?: string;
|
||||
isTextArea?: boolean;
|
||||
inputRef?: React.RefObject<HTMLInputElement | null>;
|
||||
}) {
|
||||
return (
|
||||
<label className={"flex flex-col " + className}>
|
||||
@@ -22,6 +24,7 @@ export default function TextInput({
|
||||
className="bg-slate-800 border border-slate-500 rounded-md w-full px-1"
|
||||
value={value}
|
||||
onChange={(e) => setValue(e.target.value)}
|
||||
ref={inputRef}
|
||||
/>
|
||||
)}
|
||||
{isTextArea && (
|
||||
|
||||
Reference in New Issue
Block a user