Skip to content

Commit 356c48c

Browse files
committed
Update FileUplodDoc.js
1 parent 4b9cc14 commit 356c48c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/showcase/fileupload/FileUplodDoc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export const FileUploadDemo = () => {
251251
)
252252
}
253253
254-
emptyTemplate() {
254+
const emptyTemplate = () => {
255255
return (
256256
<div className="p-d-flex p-ai-center p-dir-col">
257257
<i className="pi pi-image p-mt-3 p-p-5" style={{'fontSize': '5em', borderRadius: '50%', backgroundColor: 'var(--surface-b)', color: 'var(--surface-d)'}}></i>
@@ -381,7 +381,7 @@ export const FileUploadDemo = () => {
381381
)
382382
}
383383
384-
emptyTemplate() {
384+
const emptyTemplate = () => {
385385
return (
386386
<div className="p-d-flex p-ai-center p-dir-col">
387387
<i className="pi pi-image p-mt-3 p-p-5" style={{'fontSize': '5em', borderRadius: '50%', backgroundColor: 'var(--surface-b)', color: 'var(--surface-d)'}}></i>

0 commit comments

Comments
 (0)