Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-smf-web
Commits
dad81b32
Commit
dad81b32
authored
2 years ago
by
BharathTarento
Browse files
Options
Download
Patches
Plain Diff
changes for return to institute
parent
5bfe6861
master
delete-form
delete-user
form-issue
1 merge request
!5
changes for return to institute
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
package-lock.json
+11417
-0
package-lock.json
src/components/form-elements/TextAreaField.tsx
+3
-1
src/components/form-elements/TextAreaField.tsx
src/components/modal/ModalTwo.tsx
+1
-0
src/components/modal/ModalTwo.tsx
with
11421 additions
and
1 deletion
+11421
-1
package-lock.json
0 → 100644
+
11417
−
0
View file @
dad81b32
This diff is collapsed.
Click to expand it.
src/components/form-elements/TextAreaField.tsx
+
3
−
1
View file @
dad81b32
...
...
@@ -18,6 +18,7 @@ interface TextAreaFieldProps {
defaultValue
?:
string
;
isReadOnly
?:
boolean
;
isRequired
?:
boolean
;
maxLength
?:
any
;
}
export
const
TextAreaField
=
({
...
...
@@ -31,6 +32,7 @@ export const TextAreaField = ({
isReadOnly
,
isRequired
,
defaultValue
,
maxLength
}:
TextAreaFieldProps
)
=>
{
const
[
characterCount
,
setCharacterCount
]
=
useState
(
0
);
...
...
@@ -57,7 +59,7 @@ export const TextAreaField = ({
onKeyUp
=
{
(
e
)
=>
{
updateCharacterCount
(
e
);
}
}
maxLength
=
{
200
}
maxLength
=
{
maxLength
?
maxLength
:
200
}
value
=
{
value
}
defaultValue
=
{
defaultValue
}
readOnly
=
{
isReadOnly
?
true
:
false
}
...
...
This diff is collapsed.
Click to expand it.
src/components/modal/ModalTwo.tsx
+
1
−
0
View file @
dad81b32
...
...
@@ -136,6 +136,7 @@ export const ModalTwo = ({
rows
=
{
6
}
label
=
{
textAreaLabel
}
value
=
{
note
}
maxLength
=
{
true
}
changeHandler
=
{
(
e
)
=>
setNote
(
e
.
target
.
value
)
}
/>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets