From c7c0b061a9121cf172aecc3d0ebd46f9074bd7ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96ZT=C3=9CRK?= <76204082+iamsedatozturk@users.noreply.github.com> Date: Mon, 11 Aug 2025 17:32:28 +0300 Subject: [PATCH] =?UTF-8?q?SubDomain=20ayarlar=C4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/dev-dist/sw.js | 2 +- .../components/layouts/AuthLayout/Simple.tsx | 19 +++++++++++-------- ui/src/routes/dynamicRouter.tsx | 12 +++++++++--- ui/src/utils/subdomain.ts | 1 + 4 files changed, 22 insertions(+), 12 deletions(-) diff --git a/ui/dev-dist/sw.js b/ui/dev-dist/sw.js index 0bcdc756..4b15efd4 100644 --- a/ui/dev-dist/sw.js +++ b/ui/dev-dist/sw.js @@ -82,7 +82,7 @@ define(['./workbox-54d0af47'], (function (workbox) { 'use strict'; "revision": "3ca0b8505b4bec776b69afdba2768812" }, { "url": "index.html", - "revision": "0.1jmha53s5bo" + "revision": "0.fduoepfh2f" }], {}); workbox.cleanupOutdatedCaches(); workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), { diff --git a/ui/src/components/layouts/AuthLayout/Simple.tsx b/ui/src/components/layouts/AuthLayout/Simple.tsx index a0118724..e0d9288c 100644 --- a/ui/src/components/layouts/AuthLayout/Simple.tsx +++ b/ui/src/components/layouts/AuthLayout/Simple.tsx @@ -12,6 +12,7 @@ import appConfig from '@/configs/app.config' import dayjs from 'dayjs' import { components } from 'react-select' import { ROUTES_ENUM } from '@/routes/route.constant' +import { hasSubdomain } from '@/utils/subdomain' interface SimpleProps extends CommonProps { content?: ReactNode @@ -92,17 +93,19 @@ const Simple = ({ children, content, ...rest }: SimpleProps) => {
- - - + {!hasSubdomain() && ( + + + + )}