mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
remove unused agentMode param
Signed-off-by: Robbie Lankford <robert.lankford@grafana.com>
This commit is contained in:
parent
6df47766b2
commit
5fb63c1071
|
@ -83,7 +83,7 @@ const StatusWithStatusIndicator = withStatusIndicator(StatusContent);
|
||||||
|
|
||||||
StatusContent.displayName = 'Status';
|
StatusContent.displayName = 'Status';
|
||||||
|
|
||||||
const StatusResult: FC<{ fetchPath: string; title: string; agentMode: boolean }> = ({ fetchPath, title, agentMode }) => {
|
const StatusResult: FC<{ fetchPath: string; title: string }> = ({ fetchPath, title }) => {
|
||||||
const { response, isLoading, error } = useFetch(fetchPath);
|
const { response, isLoading, error } = useFetch(fetchPath);
|
||||||
return (
|
return (
|
||||||
<StatusWithStatusIndicator
|
<StatusWithStatusIndicator
|
||||||
|
@ -111,7 +111,7 @@ const Status: FC<{ agentMode: boolean }> = ({ agentMode }) => {
|
||||||
if (agentMode && title === 'Alertmanagers') {
|
if (agentMode && title === 'Alertmanagers') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return <StatusResult fetchPath={fetchPath} title={title} agentMode={agentMode} />;
|
return <StatusResult fetchPath={fetchPath} title={title} />;
|
||||||
})}
|
})}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue