From 3fef3809354acfca7dfbc9e275d5cbdd474dc6a5 Mon Sep 17 00:00:00 2001 From: John Brunton Date: Sat, 31 Aug 2024 13:29:13 +0100 Subject: [PATCH 1/2] ci: check build --- .github/workflows/build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5f67a981..48288244 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,14 @@ jobs: - run: pnpm install - run: pnpm run lint + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v4 + - run: pnpm install + - run: pnpm run build + test: runs-on: ubuntu-latest steps: @@ -48,7 +56,7 @@ jobs: - run: pnpm run test:int test-e2e: - needs: [lint, test, test-int, pulumi] + needs: [lint, build, test, test-int, pulumi] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 From b08725c99edc5a6e69b6527a55b71aecc51182cf Mon Sep 17 00:00:00 2001 From: John Brunton Date: Sat, 31 Aug 2024 13:32:13 +0100 Subject: [PATCH 2/2] fix: isLoading -> isPending --- client/src/features/room/organisms/ChatBox.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/features/room/organisms/ChatBox.tsx b/client/src/features/room/organisms/ChatBox.tsx index bd4484b3..f8151d69 100644 --- a/client/src/features/room/organisms/ChatBox.tsx +++ b/client/src/features/room/organisms/ChatBox.tsx @@ -17,7 +17,7 @@ const JoinAlert = ({ roomResponse }: ChatBoxProps): ReactElement => { const requiresApproval = roomResponse.room.joinPolicy === 'request' const awaitingApproval = roomResponse.status === 'PendingApproval' - const { mutate: joinRoom, isLoading, isSuccess: isJoined } = useJoinRoom(roomId) + const { mutate: joinRoom, isPending, isSuccess: isJoined } = useJoinRoom(roomId) useEffect(() => { if (isJoined) { @@ -40,7 +40,7 @@ const JoinAlert = ({ roomResponse }: ChatBoxProps): ReactElement => { Join this room to chat. - @@ -61,7 +61,7 @@ export const ChatBox: React.FC = ({ roomResponse }: ChatBoxProps): const [content, setContent] = useState('') const { data: user, isLoading } = useUserDetails() const joined = user?.rooms.some((room) => room.id === roomId) - const { mutate: postMessage, isLoading: isSending } = usePostMessage(roomId, content) + const { mutate: postMessage, isPending: isSending } = usePostMessage(roomId, content) const inputRef = useRef(null) useEffect(() => {