mirror of
https://github.com/supabase/supabase.git
synced 2026-10-19 08:09:11 +03:00
chore: removed 24h data load message when no data in BarChart
This commit is contained in:
1 parent
b6f70e62e1
commit
4e8b42ced3
2 files changed
+7
-4
No files matched your search
@@ -29,6 +29,7 @@ const LogEventChart: React.FC<Props> = ({ data, onBarClick }) => {
|
||||
}}
|
||||
customDateFormat="MMM D, HH:mm"
|
||||
displayDateInUtc
|
||||
noDataMessage={""}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ const Header = ({
|
||||
)
|
||||
}
|
||||
|
||||
const NoData = () => (
|
||||
const NoData = ({ title = 'No data to show', message = 'May take 24 hours for data to show' }) => (
|
||||
<div
|
||||
className="
|
||||
h-full w-full
|
||||
@@ -144,8 +144,8 @@ const NoData = () => (
|
||||
>
|
||||
<IconBarChart2 className="text-scale-800" />
|
||||
<div>
|
||||
<p className="text-scale-1100 text-xs">No data to show</p>
|
||||
<p className="text-scale-900 text-xs">May take 24 hours for data to show</p>
|
||||
<p className="text-scale-1100 text-xs">{title}</p>
|
||||
<p className="text-scale-900 text-xs">{message}</p>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
@@ -177,6 +177,8 @@ export function BarChart({
|
||||
minimalHeader,
|
||||
minimalChart,
|
||||
className = '',
|
||||
noDataTitle,
|
||||
noDataMessage
|
||||
}: any) {
|
||||
const hasData = data ? dataCheck(data, attribute) : true
|
||||
|
||||
@@ -291,7 +293,7 @@ export function BarChart({
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
<NoData />
|
||||
<NoData title={noDataTitle} message={noDataMessage}/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user