Upload folder using huggingface_hub
Browse files
client/src/pages/WeeklyPractice.tsx
CHANGED
|
@@ -1750,7 +1750,7 @@ const WeeklyPractice: React.FC = () => {
|
|
| 1750 |
<div className="mb-4">
|
| 1751 |
<button onClick={() => setShowSubmissions(false)} className="px-3 py-1.5 text-sm rounded-md border border-gray-300">Hide Subtitling UI</button>
|
| 1752 |
</div>
|
| 1753 |
-
|
| 1754 |
<>
|
| 1755 |
<div className="bg-white rounded-xl shadow-lg border border-gray-100 p-6">
|
| 1756 |
<div className="mb-4">
|
|
@@ -1947,8 +1947,9 @@ const WeeklyPractice: React.FC = () => {
|
|
| 1947 |
</div>
|
| 1948 |
</div>
|
| 1949 |
</>
|
| 1950 |
-
|
| 1951 |
</div>
|
|
|
|
| 1952 |
) : (
|
| 1953 |
<div className="space-y-6">
|
| 1954 |
{/* Show Subtitling UI Button for Week 2 Admin */}
|
|
|
|
| 1750 |
<div className="mb-4">
|
| 1751 |
<button onClick={() => setShowSubmissions(false)} className="px-3 py-1.5 text-sm rounded-md border border-gray-300">Hide Subtitling UI</button>
|
| 1752 |
</div>
|
| 1753 |
+
{((localStorage.getItem('viewMode')||'auto') !== 'student' && (JSON.parse(localStorage.getItem('user')||'{}').role === 'admin') && showSubmissions) && (
|
| 1754 |
<>
|
| 1755 |
<div className="bg-white rounded-xl shadow-lg border border-gray-100 p-6">
|
| 1756 |
<div className="mb-4">
|
|
|
|
| 1947 |
</div>
|
| 1948 |
</div>
|
| 1949 |
</>
|
| 1950 |
+
)}
|
| 1951 |
</div>
|
| 1952 |
+
)}
|
| 1953 |
) : (
|
| 1954 |
<div className="space-y-6">
|
| 1955 |
{/* Show Subtitling UI Button for Week 2 Admin */}
|