mirror of
https://github.com/Steffo99/todocolors.git
synced 2024-11-22 08:14:18 +00:00
Rename BoardLoading
to BoardMainLoading
This commit is contained in:
parent
616de5f8e3
commit
f392e86b81
3 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
import {BoardColumns} from "@/app/board/[board]/BoardColumns"
|
||||
import {BoardError} from "@/app/board/[board]/BoardError"
|
||||
import {BoardLoading} from "@/app/board/[board]/BoardLoading"
|
||||
import {BoardMainLoading} from "@/app/board/[board]/BoardMainLoading"
|
||||
import {useBoardContext} from "@/app/board/[board]/useBoardContext"
|
||||
|
||||
|
||||
|
@ -9,9 +9,9 @@ export function BoardBody() {
|
|||
|
||||
switch(websocketState) {
|
||||
case undefined:
|
||||
return <BoardLoading text={"Caricamento..."}/>
|
||||
return <BoardMainLoading text={"Caricamento..."}/>
|
||||
case WebSocket.CONNECTING:
|
||||
return <BoardLoading text={"Connessione..."}/>
|
||||
return <BoardMainLoading text={"Connessione..."}/>
|
||||
case WebSocket.OPEN:
|
||||
return <BoardColumns/>
|
||||
case WebSocket.CLOSING:
|
||||
|
|
|
@ -3,7 +3,7 @@ import {faSpinner} from "@fortawesome/free-solid-svg-icons"
|
|||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"
|
||||
|
||||
|
||||
export function BoardLoading({text}: {text: string}) {
|
||||
export function BoardMainLoading({text}: {text: string}) {
|
||||
return (
|
||||
<main className={style.boardLoading}>
|
||||
<div>
|
Loading…
Reference in a new issue