Format code for PR submission (#2150)
This commit is contained in:
1 parent
fc1f4fc142
commit
a29282801a
2 files changed
+2
-8
No files matched your search
@@ -58,12 +58,7 @@ Controls.propTypes = {
|
|||||||
url: PropTypes.string,
|
url: PropTypes.string,
|
||||||
};
|
};
|
||||||
|
|
||||||
const ControlsHeader = ({
|
const ControlsHeader = ({ statusPage, isPublic, url, type = "uptime" }) => {
|
||||||
statusPage,
|
|
||||||
isPublic,
|
|
||||||
url,
|
|
||||||
type = "uptime",
|
|
||||||
}) => {
|
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const publicUrl = `/status/uptime/public/${url}`;
|
const publicUrl = `/status/uptime/public/${url}`;
|
||||||
|
|||||||
@@ -26,8 +26,7 @@ const PublicStatus = () => {
|
|||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const isAdmin = useIsAdmin();
|
const isAdmin = useIsAdmin();
|
||||||
|
|
||||||
const [statusPage, monitors, isLoading, networkError] =
|
const [statusPage, monitors, isLoading, networkError] = useStatusPageFetch(false, url);
|
||||||
useStatusPageFetch(false, url);
|
|
||||||
|
|
||||||
// Breadcrumbs
|
// Breadcrumbs
|
||||||
const crumbs = [
|
const crumbs = [
|
||||||
|
|||||||
Reference in new issue
Block a user