Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 6770f53

Browse files
committed
fix(Table): loading text
1 parent 7688d3a commit 6770f53

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

client/src/components/Upload/Table/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export default function Table({ state, data }) {
4040
};
4141

4242
return state === TABLE_STATES.LOADING_LAST_UPLOADS ? (
43-
<p>Loading last uploads...</p>
43+
<div className={style.content}>
44+
<h1 className={style.title}>Loading last uploads...</h1>
45+
</div>
4446
) : (
4547
data.length > 0 && (
4648
<div className={style.content}>

client/src/components/Upload/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default function Upload({ templateId }) {
8888
async function fetchUploads() {
8989
const url = `${config.API_PREFIX}/uploads`;
9090

91-
setTableState({ type: TABLE_STATES.LOADING_LAST_UPLOADS });
91+
setTableState(TABLE_STATES.LOADING_LAST_UPLOADS);
9292

9393
try {
9494
const { data } = await apiClient.get(url);

0 commit comments

Comments
 (0)