@gustavo-valsechi/client 1.4.12 → 1.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -100,7 +100,8 @@ const IconProviderContainer = ({ children }) => {
|
|
|
100
100
|
const content2 = [];
|
|
101
101
|
for (const style in import_assets.default) {
|
|
102
102
|
for (const icon in import_assets.default[style]) {
|
|
103
|
-
|
|
103
|
+
const name = import_lodash.default.replace(icon, ".svg", "");
|
|
104
|
+
content2.push(`fa-${style} fa-${name}`);
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
107
|
return content2;
|
|
@@ -66,7 +66,8 @@ const IconProviderContainer = ({ children }) => {
|
|
|
66
66
|
const content2 = [];
|
|
67
67
|
for (const style in assets) {
|
|
68
68
|
for (const icon in assets[style]) {
|
|
69
|
-
|
|
69
|
+
const name = _.replace(icon, ".svg", "");
|
|
70
|
+
content2.push(`fa-${style} fa-${name}`);
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
return content2;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { IBaseProvider } from "../..";
|
|
2
|
-
import solid from "@contexts/icon/assets/solid";
|
|
3
|
-
import regular from "@contexts/icon/assets/regular";
|
|
4
|
-
import brands from "@contexts/icon/assets/brands";
|
|
5
2
|
export interface IIconProvider extends IBaseProvider {
|
|
6
3
|
}
|
|
7
4
|
export interface IIconContext {
|
|
8
|
-
getAll: () => Array<
|
|
5
|
+
getAll: () => Array<string>;
|
|
9
6
|
}
|