- Select a server from the sidebar to start chatting, or create a new - server -
-
- {this.state.error.stack}
-
-
- {this.state.errorInfo.componentStack}
-
- - Members -
-- {members.length} -
-{isGlobalAdmin(currentUser) ? "Admin Dashboard" : "Home"}
-{server.name}
-Add a Server
-{isMuted ? "Unmute" : "Mute"}
-{isDeafened ? "Undeafen" : "Deafen"}
-User Settings
-{children}
- );
- },
- blockquote: ({ children }) => (
- - {children} -- ), - p: ({ children }) => ( -
{children}
- ), - strong: ({ children }) => ( - - {children} - - ), - em: ({ children }) => ( - {children} - ), - ul: ({ children }) => ( -{`${error}`}
}); - } - }; - - // Helper to determine if the form is in a valid state for submission - const isFormInvalid = - !name.trim() || // Name is required and cannot be just whitespace - !categoryId || // Category must be selected - categoryId === "no-categories" || // Handle the "no categories available" placeholder - createChannelMutation.isPending; // Disable while mutation is in progress - - return ( - - ); -}; diff --git a/concord-client/src/components/modals/CreateServerModal.tsx b/concord-client/src/components/modals/CreateServerModal.tsx deleted file mode 100644 index a917123..0000000 --- a/concord-client/src/components/modals/CreateServerModal.tsx +++ /dev/null @@ -1,92 +0,0 @@ -import React, { useState } from "react"; -import { - Dialog, - DialogContent, - DialogHeader, - DialogTitle, -} from "@/components/ui/dialog"; -import { Button } from "@/components/ui/button"; -import { Input } from "@/components/ui/input"; -import { Label } from "@/components/ui/label"; -import { useCreateInstance } from "@/hooks/useServers"; - -interface CreateServerModalProps { - isOpen: boolean; - onClose: () => void; -} - -export const CreateServerModal: React.FCLoading chat...
-You don't have permission to view this server.
- -- {instanceError?.message || - messagesError?.message || - "Something went wrong"} -
- -Select a server from the sidebar to start chatting.
-Ask an admin to create a channel
-No messages yet. Start the conversation!
-Page not found
- -- {currentLightTheme.description} -
- )} -- {currentDarkTheme.description} -
- )} -