Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodlenet
MoodleNet Frontend
Commits
33c40ac7
Commit
33c40ac7
authored
Jun 02, 2020
by
ivan minutillo
Browse files
add max limit
parent
5c3e798f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/modules/AddResource/UploadResource.tsx
View file @
33c40ac7
...
...
@@ -2,7 +2,7 @@ import { Trans } from '@lingui/macro';
import
{
i18nMark
}
from
'
@lingui/react
'
;
import
{
Input
,
Textarea
}
from
'
@rebass/forms
'
;
import
*
as
React
from
'
react
'
;
import
{
Box
}
from
'
rebass/styled-components
'
;
import
{
Box
,
Text
}
from
'
rebass/styled-components
'
;
import
{
FormikHook
}
from
'
ui/@types/types
'
;
import
Alert
from
'
ui/elements/Alert
'
;
import
Button
from
'
ui/elements/Button
'
;
...
...
@@ -85,6 +85,9 @@ export const UploadResource: React.FC<Props> = ({
onFileSelect
=
{
onResourceFileSelect
}
uploadType
=
"resource"
/>
<
Adv
>
<
Trans
>
Max filesize: 20MB
</
Trans
>
</
Adv
>
</
ContainerForm
>
</
Row
>
<
Row
>
...
...
@@ -225,6 +228,10 @@ export const UploadResource: React.FC<Props> = ({
export
default
UploadResource
;
const
Adv
=
styled
(
Text
)
`
font-size: 12px;
`
;
const
Wrapper
=
styled
(
Box
)
`
background:
${
props
=>
props
.
theme
.
colors
.
appInverse
}
;
`
;
...
...
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!
Cancel
Please
register
or
sign in
to comment