diff --git a/apps/bublik/src/pages/developers-page/developers-page.tsx b/apps/bublik/src/pages/developers-page/developers-page.tsx index f78fe8b7..07700eaa 100644 --- a/apps/bublik/src/pages/developers-page/developers-page.tsx +++ b/apps/bublik/src/pages/developers-page/developers-page.tsx @@ -1,9 +1,10 @@ /* SPDX-License-Identifier: Apache-2.0 */ /* SPDX-FileCopyrightText: 2021-2023 OKTET Labs Ltd. */ -import { IframeToOldBublik } from '@/shared/tailwind-ui'; +import { Outlet } from 'react-router-dom'; + import { config } from '@/bublik/config'; import { useDocumentTitle } from '@/shared/hooks'; -import { PrivateRouteLayoutOutlet } from '@/bublik/features/auth'; +import { IframeToOldBublik } from '@/shared/tailwind-ui'; export const FlowerFeature = () => { useDocumentTitle('Flower - Bublik'); @@ -20,5 +21,5 @@ export const FlowerFeature = () => { export const DevelopersLayout = () => { useDocumentTitle('Dev - Bublik'); - return ; + return ; }; diff --git a/apps/bublik/src/pages/run-page/run-page.tsx b/apps/bublik/src/pages/run-page/run-page.tsx index c13ec8fa..ae9c1511 100644 --- a/apps/bublik/src/pages/run-page/run-page.tsx +++ b/apps/bublik/src/pages/run-page/run-page.tsx @@ -3,25 +3,24 @@ import { useState } from 'react'; import { Link, useParams } from 'react-router-dom'; -import { RunPageParams } from '@/shared/types'; -import { useCopyToClipboard } from '@/shared/hooks'; +import { DefineCompromiseContainer } from '@/bublik/features/compromised-form'; +import { LinkToSourceContainer } from '@/bublik/features/link-to-source'; +import { RunTableContainer } from '@/bublik/features/run'; +import { RunDetailsContainer } from '@/bublik/features/run-details'; +import { DiffFormContainer } from '@/bublik/features/run-diff'; import { routes } from '@/router'; +import { usePrefetchLogPage } from '@/services/bublik-api'; +import { useCopyToClipboard } from '@/shared/hooks'; import { - RunModeToggle, + ButtonTw, CardHeader, + Icon, + RunModeToggle, ScrollToTopPage, toast, - Icon, - Tooltip, - ButtonTw + Tooltip } from '@/shared/tailwind-ui'; -import { DiffFormContainer } from '@/bublik/features/run-diff'; -import { DefineCompromiseContainer } from '@/bublik/features/compromised-form'; -import { LinkToSourceContainer } from '@/bublik/features/link-to-source'; -import { RunDetailsContainer } from '@/bublik/features/run-details'; -import { RunTableContainer } from '@/bublik/features/run'; -import { usePrefetchLogPage } from '@/services/bublik-api'; -import { useAuth } from '@/bublik/features/auth'; +import { RunPageParams } from '@/shared/types'; export interface RunHeaderProps { runId: string; @@ -35,7 +34,6 @@ const RunHeader = ({ runId }: RunHeaderProps) => { onError: () => toast.error('Failed to copy run ID', { position: 'top-center' }) }); - const { isLoading, isAdmin } = useAuth(); const handleCopyRunId = () => copy(runId); @@ -43,37 +41,25 @@ const RunHeader = ({ runId }: RunHeaderProps) => { - {isLoading ? null : ( - <> - setIsModeFull(!isModeFull)} - /> - - - - Copy ID - - - - {isAdmin ? : null} - - - - - Log - - - > - )} + setIsModeFull(!isModeFull)} + /> + + + + Copy ID + + + + + + + + + Log + + diff --git a/libs/bublik/features/sidebar/src/lib/bottom-nav/bottom-nav.tsx b/libs/bublik/features/sidebar/src/lib/bottom-nav/bottom-nav.tsx index 574c4601..e952ced8 100644 --- a/libs/bublik/features/sidebar/src/lib/bottom-nav/bottom-nav.tsx +++ b/libs/bublik/features/sidebar/src/lib/bottom-nav/bottom-nav.tsx @@ -58,9 +58,7 @@ const getNavSections = (isAdmin: boolean) => { } ]; - if (isAdmin) return [devSection, ...bottomNav]; - - return bottomNav; + return [devSection, ...bottomNav]; }; export const BottomNavigation = () => {