code7-leia 0.1.166 → 0.1.167
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/dist/code7-leia.cjs.development.js +6 -3
- package/dist/code7-leia.cjs.development.js.map +1 -1
- package/dist/code7-leia.cjs.production.min.js +1 -1
- package/dist/code7-leia.cjs.production.min.js.map +1 -1
- package/dist/code7-leia.esm.js +6 -3
- package/dist/code7-leia.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FileArea/index.tsx +6 -4
- package/src/components/FileArea/styles.tsx +4 -0
package/package.json
CHANGED
|
@@ -71,11 +71,13 @@ export const FileArea = () => {
|
|
|
71
71
|
|
|
72
72
|
const pressetTag = (tags: [tag]) => {
|
|
73
73
|
let html = '';
|
|
74
|
-
|
|
74
|
+
|
|
75
75
|
html += tags.map(tag => {
|
|
76
|
-
|
|
76
|
+
const checkIcon = tag.trained ? <FaCheck size={14} /> : null;
|
|
77
|
+
const tagClass = tag.trained ? 'trained' : '';
|
|
78
|
+
return `<p class='tag ${tagClass}'>${tag.name} ${checkIcon}</p>`;
|
|
77
79
|
}).join('');
|
|
78
|
-
|
|
80
|
+
|
|
79
81
|
return html;
|
|
80
82
|
}
|
|
81
83
|
|
|
@@ -124,7 +126,7 @@ export const FileArea = () => {
|
|
|
124
126
|
<div className='actions'>
|
|
125
127
|
<Search placeholder={t.fileArea.search} setFiles={setFiles} initialFiles={initialFiles}></Search>
|
|
126
128
|
<div>
|
|
127
|
-
<button onClick={handleOpenModal}><FaUpload size={14} /> {t.fileArea.fileUpload}</button>
|
|
129
|
+
<button id='button-upload' onClick={handleOpenModal}><FaUpload size={14} /> {t.fileArea.fileUpload}</button>
|
|
128
130
|
<button onClick={() => handleOpenModalTraining(undefined)}><GiWeightLiftingUp size={14} /> {t.fileArea.training}</button>
|
|
129
131
|
</div>
|
|
130
132
|
</div>
|