basel00omar commited on
Commit
ea375f7
·
1 Parent(s): b92e226

Remove click-to-load functionality from ModuleHistory, leaving only download and delete

Browse files
frontend/src/components/ModuleHistory.jsx CHANGED
@@ -54,7 +54,7 @@ export default function ModuleHistory({ feature, token, isArabic, onLoad, refres
54
  background: 'var(--bg-primary)', border: '1px solid var(--border-color)',
55
  borderRadius: 8, padding: '7px 11px',
56
  }}>
57
- <span onClick={() => load(it.id)} style={{ color: 'var(--text-primary)', fontWeight: 600, fontSize: '0.84rem', cursor: 'pointer' }}>{it.name}</span>
58
  <span style={{ color: 'var(--text-muted)', fontSize: '0.72rem', marginRight: 'auto', marginLeft: isArabic ? 'auto' : 0 }}>{it.date}</span>
59
 
60
  {onExport && (
@@ -71,7 +71,7 @@ export default function ModuleHistory({ feature, token, isArabic, onLoad, refres
71
  }
72
  } catch { /* ignore */ }
73
  }}
74
- title={isArabic ? 'تصدير إكسل' : 'Export Excel'}
75
  />
76
  )}
77
 
 
54
  background: 'var(--bg-primary)', border: '1px solid var(--border-color)',
55
  borderRadius: 8, padding: '7px 11px',
56
  }}>
57
+ <span style={{ color: 'var(--text-primary)', fontWeight: 600, fontSize: '0.84rem' }}>{it.name}</span>
58
  <span style={{ color: 'var(--text-muted)', fontSize: '0.72rem', marginRight: 'auto', marginLeft: isArabic ? 'auto' : 0 }}>{it.date}</span>
59
 
60
  {onExport && (
 
71
  }
72
  } catch { /* ignore */ }
73
  }}
74
+ title={isArabic ? 'تنزيل التقرير (Excel)' : 'Download Report (Excel)'}
75
  />
76
  )}
77