Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

added heading prop to LogPanel

TzeYiingf363dac54dba
diff --git a/studio/components/ui/Logs/LogPanel.tsx b/studio/components/ui/Logs/LogPanel.tsx
index a420bcba7bb..7790789c27d 100644
--- a/studio/components/ui/Logs/LogPanel.tsx
+++ b/studio/components/ui/Logs/LogPanel.tsx
@@ -4,16 +4,17 @@ interface Props {
title: string
onRefresh?: () => void
isLoading: boolean
- children?: JSX.Element
+ heading?: JSX.Element
}
/**
* Logs control panel header + wrapper
*/
-export default ({ title, onRefresh, isLoading }: Props) => (
-
+const LogPanel = ({ onRefresh, isLoading, heading }: Props) => (
<div className="flex items-center justify-between w-full">
- <Typography.Title level={5}>{title} </Typography.Title>
+ <div>
+ {heading}
+ </div>
<Button
type="outline"
loading={isLoading}
@@ -23,4 +24,5 @@ export default ({ title, onRefresh, isLoading }: Props) => (
Refresh
</Button>
</div>
-)
\ No newline at end of file
+)
+export default LogPanel
\ No newline at end of file