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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.166",
2
+ "version": "0.1.167",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -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
- return `<p class='tag ${tag.trained ? 'trained' : ''}'>${tag.name} ${tag.trained ? <FaCheck size={14} /> : ''}</p>`;
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>
@@ -131,6 +131,10 @@ export const Header = styled.div`
131
131
  display: flex;
132
132
  flex-direction: column;
133
133
 
134
+ #button-upload {
135
+ margin-right: 10px;
136
+ }
137
+
134
138
  .infos {
135
139
  display: flex;
136
140
  flex-direction: column;