fix: project states fixes (#2731)
* fix: project states fixes * fix: states fixes * fix: formating all files
This commit is contained in:
parent
bd1a850f35
commit
20fb79567f
156 changed files with 1585 additions and 1758 deletions
|
|
@ -7,11 +7,7 @@ type Props = {
|
|||
color?: string;
|
||||
};
|
||||
|
||||
export const ModuleCancelledIcon: React.FC<Props> = ({
|
||||
width = "20",
|
||||
height = "20",
|
||||
className,
|
||||
}) => (
|
||||
export const ModuleCancelledIcon: React.FC<Props> = ({ width = "20", height = "20", className }) => (
|
||||
<svg
|
||||
width={width}
|
||||
height={height}
|
||||
|
|
|
|||
|
|
@ -7,11 +7,7 @@ type Props = {
|
|||
color?: string;
|
||||
};
|
||||
|
||||
export const ModuleCompletedIcon: React.FC<Props> = ({
|
||||
width = "20",
|
||||
height = "20",
|
||||
className,
|
||||
}) => (
|
||||
export const ModuleCompletedIcon: React.FC<Props> = ({ width = "20", height = "20", className }) => (
|
||||
<svg
|
||||
width={width}
|
||||
height={height}
|
||||
|
|
|
|||
|
|
@ -7,11 +7,7 @@ type Props = {
|
|||
color?: string;
|
||||
};
|
||||
|
||||
export const ModuleInProgressIcon: React.FC<Props> = ({
|
||||
width = "20",
|
||||
height = "20",
|
||||
className,
|
||||
}) => (
|
||||
export const ModuleInProgressIcon: React.FC<Props> = ({ width = "20", height = "20", className }) => (
|
||||
<svg
|
||||
width={width}
|
||||
height={height}
|
||||
|
|
@ -23,10 +19,7 @@ export const ModuleInProgressIcon: React.FC<Props> = ({
|
|||
<g id="Layer_1-2" data-name="Layer 1">
|
||||
<path fill="#f7b964" d="M0,111.14c.63.7.21,1.53.3,2.29-.07.26-.17.28-.3,0Z" />
|
||||
<path fill="#f6ab3e" d="M0,119.46a3.11,3.11,0,0,1,.3,2q-.19.33-.3,0Z" />
|
||||
<path
|
||||
fill="#facf96"
|
||||
d="M.27,123.16c0,.66.38,1.38-.27,2v-2C.13,122.89.22,122.91.27,123.16Z"
|
||||
/>
|
||||
<path fill="#facf96" d="M.27,123.16c0,.66.38,1.38-.27,2v-2C.13,122.89.22,122.91.27,123.16Z" />
|
||||
<path fill="#f5a939" d="M0,113.47l.3,0a2.39,2.39,0,0,1-.3,1.71Z" />
|
||||
<path fill="#f8ba67" d="M.27,123.16a.63.63,0,0,1-.27,0v-1.66l.3,0Z" />
|
||||
<path
|
||||
|
|
|
|||
|
|
@ -17,21 +17,12 @@ type Props = {
|
|||
width?: string;
|
||||
};
|
||||
|
||||
export const ModuleStatusIcon: React.FC<Props> = ({
|
||||
status,
|
||||
className,
|
||||
height = "12px",
|
||||
width = "12px",
|
||||
}) => {
|
||||
if (status === "backlog")
|
||||
return <ModuleBacklogIcon className={className} height={height} width={width} />;
|
||||
else if (status === "cancelled")
|
||||
return <ModuleCancelledIcon className={className} height={height} width={width} />;
|
||||
else if (status === "completed")
|
||||
return <ModuleCompletedIcon className={className} height={height} width={width} />;
|
||||
export const ModuleStatusIcon: React.FC<Props> = ({ status, className, height = "12px", width = "12px" }) => {
|
||||
if (status === "backlog") return <ModuleBacklogIcon className={className} height={height} width={width} />;
|
||||
else if (status === "cancelled") return <ModuleCancelledIcon className={className} height={height} width={width} />;
|
||||
else if (status === "completed") return <ModuleCompletedIcon className={className} height={height} width={width} />;
|
||||
else if (status === "in-progress")
|
||||
return <ModuleInProgressIcon className={className} height={height} width={width} />;
|
||||
else if (status === "paused")
|
||||
return <ModulePausedIcon className={className} height={height} width={width} />;
|
||||
else if (status === "paused") return <ModulePausedIcon className={className} height={height} width={width} />;
|
||||
else return <ModulePlannedIcon className={className} height={height} width={width} />;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue