-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloading.tsx
More file actions
29 lines (28 loc) · 981 Bytes
/
Copy pathloading.tsx
File metadata and controls
29 lines (28 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { BOARD_COLUMN_STATUSES } from '@/constants/task';
import { messages } from '@/i18n';
/** Instant skeleton shown while the board's server component fetches. */
export default function BoardLoading() {
return (
<>
<div className="board-toolbar">
<h1 style={{ margin: 0, fontSize: 22 }}>{messages.board.title}</h1>
</div>
<div className="board-columns" aria-hidden="true">
{BOARD_COLUMN_STATUSES.map((status) => (
<section className="column" key={status}>
<header className="column-header">
<span className="column-name">
<span className={`column-dot column-dot--${status}`} />
{messages.columns[status]}
</span>
</header>
<div className="column-list">
<div className="skeleton-card" />
<div className="skeleton-card" />
</div>
</section>
))}
</div>
</>
);
}