initial scaffolding
This commit is contained in:
@ -0,0 +1,30 @@
|
||||
import React from "react";
|
||||
|
||||
interface TicketTextProps {
|
||||
label: string;
|
||||
value: string;
|
||||
onChange: (value: string) => void;
|
||||
required?: boolean;
|
||||
}
|
||||
|
||||
const TicketText: React.FC<TicketTextProps> = ({
|
||||
label,
|
||||
value,
|
||||
onChange,
|
||||
required,
|
||||
}) => {
|
||||
return (
|
||||
<div className="detail-group full-width">
|
||||
<label>{label}</label>
|
||||
|
||||
<textarea
|
||||
rows={15}
|
||||
value={value}
|
||||
required={required}
|
||||
onChange={e => onChange(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default TicketText;
|
||||
Reference in New Issue
Block a user