add chatbot
This commit is contained in:
1 parent
15be7d723c
commit
8ccbbfe745
1 file changed
+6
-4
@@ -3,6 +3,7 @@ import { ColContainer } from "../../../../../Components/StandardContainer";
|
|||||||
import { Stack, Typography } from "@mui/material";
|
import { Stack, Typography } from "@mui/material";
|
||||||
import PulseDot from "../../../../../Components/Animated/PulseDot";
|
import PulseDot from "../../../../../Components/Animated/PulseDot";
|
||||||
import LastUpdate from "../LastUpdate";
|
import LastUpdate from "../LastUpdate";
|
||||||
|
import ChatBot from "../Chatbot";
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
@@ -44,7 +45,7 @@ const StatusHeader = ({ monitor, connectionStatus }) => {
|
|||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
variant="h1"
|
variant="h1"
|
||||||
color={theme.palette.distributedStatusHeader.primaryText}
|
color={theme.palette.distributedStatusHeader.textPrimary}
|
||||||
>
|
>
|
||||||
{MSG_MAP[connectionStatus]}
|
{MSG_MAP[connectionStatus]}
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -53,16 +54,16 @@ const StatusHeader = ({ monitor, connectionStatus }) => {
|
|||||||
borderRadius={theme.spacing(8)}
|
borderRadius={theme.spacing(8)}
|
||||||
padding={theme.spacing(4)}
|
padding={theme.spacing(4)}
|
||||||
backgroundColor={
|
backgroundColor={
|
||||||
theme.palette.distributedStatusHeader.primaryTextBackground
|
theme.palette.distributedStatusHeader.textPrimaryBackground
|
||||||
}
|
}
|
||||||
color={theme.palette.distributedStatusHeader.primaryText}
|
color={theme.palette.distributedStatusHeader.textPrimary}
|
||||||
>
|
>
|
||||||
Uptime: {(monitor.totalUptime * 100).toFixed(2)}%
|
Uptime: {(monitor.totalUptime * 100).toFixed(2)}%
|
||||||
</Typography>
|
</Typography>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Typography
|
<Typography
|
||||||
variant="body2"
|
variant="body2"
|
||||||
color={theme.palette.distributedStatusHeader.secondaryText}
|
color={theme.palette.distributedStatusHeader.textSecondary}
|
||||||
>
|
>
|
||||||
Last updated{" "}
|
Last updated{" "}
|
||||||
<LastUpdate
|
<LastUpdate
|
||||||
@@ -72,6 +73,7 @@ const StatusHeader = ({ monitor, connectionStatus }) => {
|
|||||||
</Typography>
|
</Typography>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
<ChatBot sx={{ marginTop: theme.spacing(10) }} />
|
||||||
</ColContainer>
|
</ColContainer>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user