@firedesktop/react-base 1.20.2 → 1.21.1
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.
- package/.eslintcache +1 -1
- package/dist/components/AppIcon.d.ts +5 -2
- package/dist/components/AppIcon.js +43 -43
- package/dist/components/AppIcon.js.map +1 -1
- package/package.json +7 -6
- package/src/App.tsx +6 -2
- package/src/lib/components/AppIcon.tsx +145 -142
package/src/App.tsx
CHANGED
|
@@ -6,7 +6,7 @@ import { Components, ConfigurationLoader, Utils, LanguageLoader } from './lib';
|
|
|
6
6
|
|
|
7
7
|
import TestLabelFunction from './TestLabelFunction';
|
|
8
8
|
|
|
9
|
-
import 'bootstrap/dist/css/bootstrap.
|
|
9
|
+
import 'bootstrap/dist/css/bootstrap.css';
|
|
10
10
|
import '@syncfusion/ej2-base/styles/bootstrap4.css';
|
|
11
11
|
import '@syncfusion/ej2-buttons/styles/bootstrap4.css';
|
|
12
12
|
import '@syncfusion/ej2-icons/styles/bootstrap4.css';
|
|
@@ -46,6 +46,10 @@ function App() {
|
|
|
46
46
|
alert('Log Out 403');
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
function iconClick(event: any) {
|
|
50
|
+
alert('Icon click');
|
|
51
|
+
}
|
|
52
|
+
|
|
49
53
|
const textFetch = () => {
|
|
50
54
|
const labels = { errorGeneric: 'Errore generiro', errorServerNotAvailable: 'No serviziooo', errorSessionExpired: 'Sessione scadurta' } as Utils.Fetch.Types.ILabels;
|
|
51
55
|
|
|
@@ -126,7 +130,7 @@ function App() {
|
|
|
126
130
|
<br />
|
|
127
131
|
<Components.AppPagination activePage={activePage} itemsPerPage={7} onPageChange={onPageChange} totalItems={17} maxSize={5} />
|
|
128
132
|
<Components.Spin spinning={spinning} />
|
|
129
|
-
<Components.AppIcon name={'Pin'} className='dark-pink-svg' />
|
|
133
|
+
<Components.AppIcon name={'Pin'} className='dark-pink-svg' onClick={iconClick} />
|
|
130
134
|
<TestLabelFunction />
|
|
131
135
|
<ConfigurationLoader updateAppState={updateAppState} path={null} />
|
|
132
136
|
<LanguageLoader updateAppState={updateAppState} language='it-IT' path={null} />
|