Fix some files typo
This commit is contained in:
1 parent
95a0ad0dbd
commit
d51ff3a586
2 files changed
+2
-12
No files matched your search
@@ -10,7 +10,7 @@ import { BaseLabel } from "../Label";
|
|||||||
* @returns {JSX.Element}
|
* @returns {JSX.Element}
|
||||||
* @example
|
* @example
|
||||||
* // Render a http status label
|
* // Render a http status label
|
||||||
* <HttpStatusLabel status="404" />
|
* <HttpStatusLabel status={404} />
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const getRoundedStatusCode = (status) => {
|
const getRoundedStatusCode = (status) => {
|
||||||
|
|||||||
@@ -145,16 +145,6 @@ const StatusLabel = ({ status, text, customStyles }) => {
|
|||||||
bgColor: theme.palette.warning.bg,
|
bgColor: theme.palette.warning.bg,
|
||||||
borderColor: theme.palette.warning.light,
|
borderColor: theme.palette.warning.light,
|
||||||
},
|
},
|
||||||
400: {
|
|
||||||
dotColor: theme.palette.warning.main,
|
|
||||||
bgColor: theme.palette.warning.bg,
|
|
||||||
borderColor: theme.palette.warning.light,
|
|
||||||
},
|
|
||||||
500: {
|
|
||||||
dotColor: theme.palette.warning.main,
|
|
||||||
bgColor: theme.palette.warning.bg,
|
|
||||||
borderColor: theme.palette.warning.light,
|
|
||||||
},
|
|
||||||
"cannot resolve": {
|
"cannot resolve": {
|
||||||
dotColor: theme.palette.unresolved.main,
|
dotColor: theme.palette.unresolved.main,
|
||||||
bgColor: theme.palette.unresolved.bg,
|
bgColor: theme.palette.unresolved.bg,
|
||||||
@@ -163,7 +153,7 @@ const StatusLabel = ({ status, text, customStyles }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Look up the color for the status
|
// Look up the color for the status
|
||||||
const { borderColor, bgColor, dotColor } = colors[status] || colors["cannot resolve"];
|
const { borderColor, bgColor, dotColor } = colors[status];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BaseLabel
|
<BaseLabel
|
||||||
|
|||||||
Reference in new issue
Block a user