mirror of
https://github.com/freedbygrace/DynamoDNS.git
synced 2026-07-26 11:38:13 +00:00
Rename "Organizations" to "Customers" throughout the application.
Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/612fb201-0991-496d-8e60-b364e0e909c6.jpg
This commit is contained in:
+4
-4
@@ -20,14 +20,14 @@ import WebhookLogsPage from "@/pages/webhook-logs";
|
||||
import { AuthProvider } from "@/hooks/use-auth";
|
||||
import { ProtectedRoute } from "@/lib/protected-route";
|
||||
import { ThemeProvider } from "@/hooks/use-theme";
|
||||
import { OrganizationProvider } from "@/context/organization-context";
|
||||
import { CustomerProvider } from "@/context/customer-context";
|
||||
|
||||
function Router() {
|
||||
return (
|
||||
<Switch>
|
||||
<Route path="/auth" component={AuthPage} />
|
||||
<ProtectedRoute path="/" component={DashboardPage} />
|
||||
<ProtectedRoute path="/organizations" component={OrganizationsPage} />
|
||||
<ProtectedRoute path="/customers" component={OrganizationsPage} />
|
||||
<ProtectedRoute path="/domains" component={DomainsPage} />
|
||||
<ProtectedRoute path="/metrics" component={MetricsPage} />
|
||||
<ProtectedRoute path="/history" component={HistoryPage} />
|
||||
@@ -49,10 +49,10 @@ function App() {
|
||||
<ThemeProvider>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<AuthProvider>
|
||||
<OrganizationProvider>
|
||||
<CustomerProvider>
|
||||
<Router />
|
||||
<Toaster />
|
||||
</OrganizationProvider>
|
||||
</CustomerProvider>
|
||||
</AuthProvider>
|
||||
</QueryClientProvider>
|
||||
</ThemeProvider>
|
||||
|
||||
@@ -36,8 +36,8 @@ export function MobileSidebar({ isOpen, onClose }: MobileSidebarProps) {
|
||||
icon: <LayoutDashboard className="w-5 h-5 mr-3" />,
|
||||
},
|
||||
{
|
||||
title: "Organizations",
|
||||
href: "/organizations",
|
||||
title: "Customers",
|
||||
href: "/customers",
|
||||
icon: <Users className="w-5 h-5 mr-3" />,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { useForm } from "react-hook-form";
|
||||
import { z } from "zod";
|
||||
import { useAuth } from "@/hooks/use-auth";
|
||||
import { useOrganization } from "@/context/organization-context";
|
||||
import { useCustomer } from "@/context/customer-context";
|
||||
import { Redirect, useLocation } from "wouter";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
@@ -28,7 +28,7 @@ const registerSchema = z.object({
|
||||
email: z.string().email("Please enter a valid email"),
|
||||
password: z.string().min(8, "Password must be at least 8 characters"),
|
||||
fullName: z.string().optional(),
|
||||
organizationId: z.string().optional(),
|
||||
customerId: z.string().optional(),
|
||||
});
|
||||
|
||||
// Define LDAP login schema
|
||||
@@ -49,7 +49,7 @@ interface AuthConfig {
|
||||
export default function AuthPage() {
|
||||
const { user, loginMutation, registerMutation } = useAuth();
|
||||
const { theme } = useTheme();
|
||||
const { organizations, isLoading: orgsLoading } = useOrganization();
|
||||
const { customers, isLoading: customersLoading } = useCustomer();
|
||||
const [location, setLocation] = useLocation();
|
||||
|
||||
// Fetch authentication configuration
|
||||
|
||||
Reference in New Issue
Block a user