diff --git a/frontend/console/src/features/console/ConsolePage.tsx b/frontend/console/src/features/console/ConsolePage.tsx index b547c8746d..71ec658c3b 100644 --- a/frontend/console/src/features/console/ConsolePage.tsx +++ b/frontend/console/src/features/console/ConsolePage.tsx @@ -1,4 +1,3 @@ -import { CubeIcon } from 'hugeicons-react' import { useState } from 'react' import { type NavigateFunction, useNavigate } from 'react-router-dom' import { useModules } from '../../api/modules/use-modules' @@ -25,7 +24,6 @@ export const ConsolePage = () => { return ( - } title='Console' /> } diff --git a/frontend/console/src/features/timeline/TimelinePage.tsx b/frontend/console/src/features/timeline/TimelinePage.tsx index 5aadeaa494..1655e24f33 100644 --- a/frontend/console/src/features/timeline/TimelinePage.tsx +++ b/frontend/console/src/features/timeline/TimelinePage.tsx @@ -1,4 +1,3 @@ -import { ListViewIcon } from 'hugeicons-react' import { useEffect, useState } from 'react' import { useSearchParams } from 'react-router-dom' import { Page } from '../../layout' @@ -35,11 +34,9 @@ export const TimelinePage = () => { return ( - } title='Events'> - -
+
diff --git a/frontend/console/src/features/timeline/filters/TimelineTimeControls.tsx b/frontend/console/src/features/timeline/filters/TimelineTimeControls.tsx index 07bfbf7d57..82a3562b0e 100644 --- a/frontend/console/src/features/timeline/filters/TimelineTimeControls.tsx +++ b/frontend/console/src/features/timeline/filters/TimelineTimeControls.tsx @@ -101,20 +101,22 @@ export const TimelineTimeControls = ({ const olderThan = newerThan ? Timestamp.fromDate(new Date(newerThan.toDate().getTime() - selected.value)) : undefined return ( <> -
- {newerThan && ( - - {formatTimestampTime(olderThan)} - {formatTimestampTime(newerThan)} - - )} - + {newerThan && ( +
+ {formatTimestampTime(olderThan)} - {formatTimestampTime(newerThan)} +
+ )} +
-
+
{selected.label} - + @@ -165,14 +167,14 @@ export const TimelineTimeControls = ({ diff --git a/frontend/console/src/layout/Page.tsx b/frontend/console/src/layout/Page.tsx index 7e07c9fb98..78e30c2290 100644 --- a/frontend/console/src/layout/Page.tsx +++ b/frontend/console/src/layout/Page.tsx @@ -1,52 +1,6 @@ -import { ArrowRight02Icon } from 'hugeicons-react' import type React from 'react' import { classNames } from '../utils' -interface Breadcrumb { - label: string - link?: string -} - -const Header = ({ - icon, - title, - children, - breadcrumbs, - className, -}: { - icon?: React.ReactNode - title: string - children?: React.ReactNode - breadcrumbs?: Breadcrumb[] - className?: string -}) => { - return ( -
-
- {icon} - {breadcrumbs && breadcrumbs.length > 0 && ( - - )} - {title} -
- {children} -
- ) -} - const Body: React.FC<{ className?: string style?: React.CSSProperties @@ -64,7 +18,6 @@ export const Page: React.FC<{ style?: React.CSSProperties children?: React.ReactNode }> & { - Header: typeof Header Body: typeof Body } = ({ className, style, children }) => { return ( @@ -74,5 +27,4 @@ export const Page: React.FC<{ ) } -Page.Header = Header Page.Body = Body