forked from usebruno/bruno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Extract CloseTabIcon, DraftTabIcon (usebruno#1166)
Co-authored-by: Anoop M D <[email protected]>
- Loading branch information
1 parent
721d0e1
commit ea91117
Showing
5 changed files
with
33 additions
and
29 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
packages/bruno-app/src/components/RequestTabs/RequestTab/CloseTab/CloseTabIcon.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const CloseTabIcon = () => ( | ||
<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" className="close-icon"> | ||
<path | ||
fill="currentColor" | ||
d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z" | ||
></path> | ||
</svg> | ||
); | ||
|
||
export default CloseTabIcon; |
15 changes: 15 additions & 0 deletions
15
packages/bruno-app/src/components/RequestTabs/RequestTab/CloseTab/DraftTabIcon.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const DraftTabIcon = () => ( | ||
<svg | ||
focusable="false" | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="8" | ||
height="16" | ||
fill="#cc7b1b" | ||
className="has-changes-icon" | ||
viewBox="0 0 8 8" | ||
> | ||
<circle cx="4" cy="4" r="3" /> | ||
</svg> | ||
); | ||
|
||
export default DraftTabIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters