Skip to content

Commit e1c75ca

Browse files
committed
feat(component): add swagger docs icon
ref: #18 #34
1 parent 66ce5fd commit e1c75ca

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/components/IconLoader.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ import TicketIncident from "./icons/TicketIncident";
5151
import TicketProblem from "./icons/TicketProblem";
5252
import TicketChange from "./icons/TicketChange";
5353
import Documentation from "./icons/documentation";
54+
import SwaggerDcoumentation from "./icons/SwaggerDcoumentation";
5455
import Git from "./icons/Git";
5556

5657

@@ -90,6 +91,7 @@ const icon_components = {
9091
service: ServiceIcon,
9192
software: SoftwareIcon,
9293
settings: SettingsIcon,
94+
swagger_docs: SwaggerDcoumentation,
9395
task: TaskIcon,
9496
ticket_change: TicketChange,
9597
ticket_incident: TicketIncident,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const SwaggerDcoumentation = ({
2+
width = '20px',
3+
height = '20px',
4+
fill = '#FFF'
5+
}) => {
6+
7+
return (
8+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" width={ width } height={ height } fill={ fill }>
9+
<path d="M660-160h40v-160h-40v160Zm20-200q8 0 14-6t6-14q0-8-6-14t-14-6q-8 0-14 6t-6 14q0 8 6 14t14 6ZM200-800v640-640 200-200Zm80 400h147q11-23 25.5-43t32.5-37H280v80Zm0 160h123q-3-20-3-40t3-40H280v80ZM200-80q-33 0-56.5-23.5T120-160v-640q0-33 23.5-56.5T200-880h320l240 240v92q-19-6-39-9t-41-3v-40H480v-200H200v640h227q11 23 25.5 43T485-80H200Zm480-400q83 0 141.5 58.5T880-280q0 83-58.5 141.5T680-80q-83 0-141.5-58.5T480-280q0-83 58.5-141.5T680-480Z"/>
10+
</svg>
11+
);
12+
}
13+
14+
export default SwaggerDcoumentation

0 commit comments

Comments
 (0)