1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-11-22 00:04:18 +00:00

Rename BoardLoading to BoardMainLoading

This commit is contained in:
Steffo 2023-08-03 17:08:33 +02:00
parent 616de5f8e3
commit f392e86b81
Signed by: steffo
GPG key ID: 2A24051445686895
3 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

@ -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>