Commit dad81b32 authored by BharathTarento's avatar BharathTarento
Browse files

changes for return to institute

1 merge request!5changes for return to institute
Showing with 11421 additions and 1 deletion
+11421 -1
package-lock.json 0 → 100644
+ 11417
0
View file @ dad81b32
This diff is collapsed.
...@@ -18,6 +18,7 @@ interface TextAreaFieldProps { ...@@ -18,6 +18,7 @@ interface TextAreaFieldProps {
defaultValue?: string; defaultValue?: string;
isReadOnly?: boolean; isReadOnly?: boolean;
isRequired?: boolean; isRequired?: boolean;
maxLength?: any;
} }
export const TextAreaField = ({ export const TextAreaField = ({
...@@ -31,6 +32,7 @@ export const TextAreaField = ({ ...@@ -31,6 +32,7 @@ export const TextAreaField = ({
isReadOnly, isReadOnly,
isRequired, isRequired,
defaultValue, defaultValue,
maxLength
}: TextAreaFieldProps) => { }: TextAreaFieldProps) => {
const [characterCount, setCharacterCount] = useState(0); const [characterCount, setCharacterCount] = useState(0);
...@@ -57,7 +59,7 @@ export const TextAreaField = ({ ...@@ -57,7 +59,7 @@ export const TextAreaField = ({
onKeyUp={(e) => { onKeyUp={(e) => {
updateCharacterCount(e); updateCharacterCount(e);
}} }}
maxLength={200} maxLength={maxLength?maxLength:200}
value={value} value={value}
defaultValue={defaultValue} defaultValue={defaultValue}
readOnly={isReadOnly ? true : false} readOnly={isReadOnly ? true : false}
......
...@@ -136,6 +136,7 @@ export const ModalTwo = ({ ...@@ -136,6 +136,7 @@ export const ModalTwo = ({
rows={6} rows={6}
label={textAreaLabel} label={textAreaLabel}
value={note} value={note}
maxLength={true}
changeHandler={(e) => setNote(e.target.value)} changeHandler={(e) => setNote(e.target.value)}
/> />
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment