From f392e86b816b4e6bc1591cd19e4786f9ac18f74c Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 3 Aug 2023 17:08:33 +0200 Subject: [PATCH] Rename `BoardLoading` to `BoardMainLoading` --- todoblue/src/app/board/[board]/BoardBody.tsx | 6 +++--- ...{BoardLoading.module.css => BoardMainLoading.module.css} | 0 .../[board]/{BoardLoading.tsx => BoardMainLoading.tsx} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename todoblue/src/app/board/[board]/{BoardLoading.module.css => BoardMainLoading.module.css} (100%) rename todoblue/src/app/board/[board]/{BoardLoading.tsx => BoardMainLoading.tsx} (85%) diff --git a/todoblue/src/app/board/[board]/BoardBody.tsx b/todoblue/src/app/board/[board]/BoardBody.tsx index 8b6ee0a..9f0a487 100644 --- a/todoblue/src/app/board/[board]/BoardBody.tsx +++ b/todoblue/src/app/board/[board]/BoardBody.tsx @@ -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 + return case WebSocket.CONNECTING: - return + return case WebSocket.OPEN: return case WebSocket.CLOSING: diff --git a/todoblue/src/app/board/[board]/BoardLoading.module.css b/todoblue/src/app/board/[board]/BoardMainLoading.module.css similarity index 100% rename from todoblue/src/app/board/[board]/BoardLoading.module.css rename to todoblue/src/app/board/[board]/BoardMainLoading.module.css diff --git a/todoblue/src/app/board/[board]/BoardLoading.tsx b/todoblue/src/app/board/[board]/BoardMainLoading.tsx similarity index 85% rename from todoblue/src/app/board/[board]/BoardLoading.tsx rename to todoblue/src/app/board/[board]/BoardMainLoading.tsx index 5541614..f7354be 100644 --- a/todoblue/src/app/board/[board]/BoardLoading.tsx +++ b/todoblue/src/app/board/[board]/BoardMainLoading.tsx @@ -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 (