Use Dot component in host
This commit is contained in:
1 parent
5622b3b47e
commit
9381429f40
1 file changed
+3
-11
@@ -1,6 +1,7 @@
|
|||||||
import { Stack, Box, Typography } from "@mui/material";
|
import { Stack, Typography } from "@mui/material";
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
|
import Dot from "../../../../../Components/Dot";
|
||||||
/**
|
/**
|
||||||
* Host component.
|
* Host component.
|
||||||
* This subcomponent receives a params object and displays the host details.
|
* This subcomponent receives a params object and displays the host details.
|
||||||
@@ -26,16 +27,7 @@ const Host = ({ url, title, percentageColor, percentage }) => {
|
|||||||
{title}
|
{title}
|
||||||
{percentageColor && percentage && (
|
{percentageColor && percentage && (
|
||||||
<>
|
<>
|
||||||
<span
|
<Dot />
|
||||||
style={{
|
|
||||||
content: '""',
|
|
||||||
width: "4px",
|
|
||||||
height: "4px",
|
|
||||||
borderRadius: "50%",
|
|
||||||
backgroundColor: "gray",
|
|
||||||
opacity: 0.8,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<Typography
|
<Typography
|
||||||
component="span"
|
component="span"
|
||||||
sx={{
|
sx={{
|
||||||
|
|||||||
Reference in new issue
Block a user