code7-leia 0.2.33 → 0.2.35

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.2.33",
2
+ "version": "0.2.35",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -145,8 +145,8 @@ export const FileArea = () => {
145
145
  <div className='actions'>
146
146
  <Search placeholder={t.fileArea.search} setFiles={setFiles} initialFiles={initialFiles}></Search>
147
147
  <div>
148
- <button id='button-upload' onClick={handleOpenModal} disabled={readonly}><FaUpload size={14} /> {t.fileArea.fileUpload}</button>
149
- <button onClick={() => handleOpenModalTraining(undefined)} disabled={readonly}><GiWeightLiftingUp size={14} /> {t.fileArea.training}</button>
148
+ <button id='button-upload' disabled={readonly} onClick={handleOpenModal}><FaUpload size={14} /> {t.fileArea.fileUpload}</button>
149
+ <button disabled={readonly} onClick={() => handleOpenModalTraining(undefined)} ><GiWeightLiftingUp size={14} /> {t.fileArea.training}</button>
150
150
  </div>
151
151
  </div>
152
152
  </S.Header>
@@ -156,7 +156,7 @@ export const FileArea = () => {
156
156
  icon={<FaList></FaList>}
157
157
  title={t.fileArea.emptyState.title}
158
158
  description={t.fileArea.emptyState.description}
159
- iconButton={<button id='button-upload' onClick={handleOpenModal}><FaUpload size={14} /> {t.fileArea.fileUpload}</button>}
159
+ iconButton={<button id='button-upload' disabled={readonly} onClick={handleOpenModal}><FaUpload size={14} /> {t.fileArea.fileUpload}</button>}
160
160
  descriptionButton={t.fileArea.fileUpload}
161
161
  widthButton="230px"
162
162
  />
@@ -186,8 +186,8 @@ export const FileArea = () => {
186
186
  <td className='tags' dangerouslySetInnerHTML={{ __html: pressetTag(object.tags) }} />
187
187
  <td>
188
188
  <div className='divDelete'>
189
- <button className='buttonTraining' onClick={() => handleOpenModalTraining(object.tags)}>{t.buttons.training}</button>
190
- <button className='buttonDelete' onClick={() => handleOpenModalDelete(object.name)}>{t.buttons.delete}</button>
189
+ <button className='buttonTraining' disabled={readonly} onClick={() => handleOpenModalTraining(object.tags)}>{t.buttons.training}</button>
190
+ <button className='buttonDelete' disabled={readonly} onClick={() => handleOpenModalDelete(object.name)}>{t.buttons.delete}</button>
191
191
  </div>
192
192
  </td>
193
193
  </tr>
@@ -65,6 +65,11 @@ export const Container = styled.div<ContainerProps>`
65
65
  background: #fae0d2;
66
66
  padding: 12px 20px;
67
67
  border-radius: 4px;
68
+
69
+ &:disabled {
70
+ cursor: not-allowed;
71
+ opacity: 0.7;
72
+ }
68
73
  }
69
74
 
70
75
  .buttonDelete:hover {
@@ -77,6 +82,11 @@ export const Container = styled.div<ContainerProps>`
77
82
  padding: 12px 20px;
78
83
  border-radius: 4px;
79
84
  margin-right: 10px;
85
+
86
+ &:disabled {
87
+ cursor: not-allowed;
88
+ opacity: 0.7;
89
+ }
80
90
  }
81
91
 
82
92
  .buttonTraining:hover {
@@ -165,7 +175,7 @@ export const Header = styled.div`
165
175
 
166
176
  &:disabled {
167
177
  cursor: not-allowed;
168
- opacity: 0.5;
178
+ opacity: 0.7;
169
179
  }
170
180
  }
171
181
  }