Skip to content

Commit

Permalink
Add Health Icons - Closes react-icons#482
Browse files Browse the repository at this point in the history
  • Loading branch information
Catchwa committed Sep 12, 2021
1 parent cda1f91 commit 190ae2e
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@
[submodule "webfont-medical-icons"]
path = packages/react-icons/src/icons/webfont-medical-icons
url = https://github.com/samcome/webfont-medical-icons.git
[submodule "packages/react-icons/src/icons/healthicons"]
path = packages/react-icons/src/icons/healthicons
url = https://github.com/resolvetosavelives/healthicons.git
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Icon Library|License|Version|Count
[BoxIcons](https://github.com/atisawd/boxicons)|[CC BY 4.0 License](undefined)|2.0.5|738
[css.gg](https://github.com/astrit/css.gg)|[MIT](https://opensource.org/licenses/MIT)|2.0.0|704
[VS Code Icons](https://github.com/microsoft/vscode-codicons)|[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)|0.0.1|319
[Health Icons](https://github.com/resolvetosavelives/healthicons)|[MIT](https://opensource.org/licenses/MIT)|0.1.0|2120
You can add more icons by submitting pull requests or creating issues.
Expand Down
2 changes: 2 additions & 0 deletions packages/demo/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { FaFolder } from "react-icons/fa";
import { MdAccessibility } from "react-icons/md";
import { TiArrowDown } from "react-icons/ti";
import { GrGrommet } from "react-icons/gr";
import { HiAcademicCap } from "react-icons/hi";

class App extends Component {
render() {
Expand Down Expand Up @@ -36,6 +37,7 @@ class App extends Component {
<FaFolder />
<TiArrowDown title="arrow down icon" />
<GrGrommet />
<HiAcademicCap />
</p>
</div>
);
Expand Down
1 change: 1 addition & 0 deletions packages/demo/src/__snapshots__/App.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ exports[`snapshot test 1`] = `
title="arrow down icon"
/>
<GrGrommet />
<HiAcademicCap />
</p>
</div>
`;
1 change: 1 addition & 0 deletions packages/react-icons/VERSIONS
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ Icon Library|License|Version|Count
[BoxIcons](https://github.com/atisawd/boxicons)|[CC BY 4.0 License](undefined)|2.0.5|738
[css.gg](https://github.com/astrit/css.gg)|[MIT](https://opensource.org/licenses/MIT)|2.0.0|704
[VS Code Icons](https://github.com/microsoft/vscode-codicons)|[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)|0.0.1|319
[Health Icons](https://github.com/resolvetosavelives/healthicons)|[MIT](https://opensource.org/licenses/MIT)|0.1.0|2120
1 change: 1 addition & 0 deletions packages/react-icons/src/icons/healthicons
Submodule healthicons added at 0df29e
21 changes: 21 additions & 0 deletions packages/react-icons/src/icons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,5 +349,26 @@ module.exports = {
license: "MIT",
licenseUrl: "https://opensource.org/licenses/MIT",
},
{
id: "hi",
name: "Health icons",
contents: [
{
files: path.resolve(__dirname, "healthicons/public/icons/svg/filled/*/*.svg"),
formatter: (name) => `Hi${name}`,
},
{
files: path.resolve(__dirname, "healthicons/public/icons/svg/negative/*/*.svg"),
formatter: (name) => `HiNegative${name}`,
},
{
files: path.resolve(__dirname, "healthicons/public/icons/svg/outline/*/*.svg"),
formatter: (name) => `HiOutline${name}`,
},
],
projectUrl: "https://github.com/resolvetosavelives/healthicons",
license: "MIT",
licenseUrl: "https://opensource.org/licenses/MIT",
},
],
};

0 comments on commit 190ae2e

Please sign in to comment.