File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import {
2222 Link ,
2323 CircularProgress ,
2424 Alert ,
25+ Skeleton ,
2526 Tabs ,
2627 Tab ,
2728 Select ,
@@ -279,10 +280,72 @@ const Home: React.FC = () => {
279280 ) }
280281
281282 { loading ? (
282- < Box display = "flex" justifyContent = "center" my = { 4 } >
283- < CircularProgress />
284- </ Box >
285- ) : (
283+ < TableContainer component = { Paper } >
284+ < Table size = "small" >
285+ < TableHead >
286+ < TableRow >
287+ < TableCell > Title</ TableCell >
288+ < TableCell align = "center" > Repository</ TableCell >
289+ < TableCell align = "center" > State</ TableCell >
290+ < TableCell > Created</ TableCell >
291+ </ TableRow >
292+ </ TableHead >
293+
294+ < TableBody >
295+ { [ ...Array ( 6 ) ] . map ( ( _ , index ) => (
296+ < TableRow key = { index } >
297+ < TableCell >
298+ < Box display = "flex" alignItems = "center" gap = { 1 } >
299+ < Skeleton
300+ variant = "circular"
301+ width = { 20 }
302+ height = { 20 }
303+ animation = "wave"
304+ />
305+
306+ < Skeleton
307+ variant = "text"
308+ width = "80%"
309+ height = { 30 }
310+ animation = "wave"
311+ />
312+ </ Box >
313+ </ TableCell >
314+
315+ < TableCell align = "center" >
316+ < Skeleton
317+ variant = "text"
318+ width = { 100 }
319+ height = { 25 }
320+ animation = "wave"
321+ sx = { { mx : "auto" } }
322+ />
323+ </ TableCell >
324+
325+ < TableCell align = "center" >
326+ < Skeleton
327+ variant = "rounded"
328+ width = { 70 }
329+ height = { 25 }
330+ animation = "wave"
331+ sx = { { mx : "auto" } }
332+ />
333+ </ TableCell >
334+
335+ < TableCell >
336+ < Skeleton
337+ variant = "text"
338+ width = { 90 }
339+ height = { 25 }
340+ animation = "wave"
341+ />
342+ </ TableCell >
343+ </ TableRow >
344+ ) ) }
345+ </ TableBody >
346+ </ Table >
347+ </ TableContainer >
348+ ) : (
286349 < Box sx = { { maxHeight : "400px" , overflowY : "auto" } } >
287350
288351 < TableContainer component = { Paper } >
You can’t perform that action at this time.
0 commit comments