mirror of
https://github.com/Steffo99/todocolors.git
synced 2024-11-22 16:24:19 +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 {BoardColumns} from "@/app/board/[board]/BoardColumns"
|
||||||
import {BoardError} from "@/app/board/[board]/BoardError"
|
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"
|
import {useBoardContext} from "@/app/board/[board]/useBoardContext"
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,9 +9,9 @@ export function BoardBody() {
|
||||||
|
|
||||||
switch(websocketState) {
|
switch(websocketState) {
|
||||||
case undefined:
|
case undefined:
|
||||||
return <BoardLoading text={"Caricamento..."}/>
|
return <BoardMainLoading text={"Caricamento..."}/>
|
||||||
case WebSocket.CONNECTING:
|
case WebSocket.CONNECTING:
|
||||||
return <BoardLoading text={"Connessione..."}/>
|
return <BoardMainLoading text={"Connessione..."}/>
|
||||||
case WebSocket.OPEN:
|
case WebSocket.OPEN:
|
||||||
return <BoardColumns/>
|
return <BoardColumns/>
|
||||||
case WebSocket.CLOSING:
|
case WebSocket.CLOSING:
|
||||||
|
|
|
@ -3,7 +3,7 @@ import {faSpinner} from "@fortawesome/free-solid-svg-icons"
|
||||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"
|
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"
|
||||||
|
|
||||||
|
|
||||||
export function BoardLoading({text}: {text: string}) {
|
export function BoardMainLoading({text}: {text: string}) {
|
||||||
return (
|
return (
|
||||||
<main className={style.boardLoading}>
|
<main className={style.boardLoading}>
|
||||||
<div>
|
<div>
|
Loading…
Reference in a new issue