linguabot commited on
Commit
77a8960
·
verified ·
1 Parent(s): c9ec868

Upload folder using huggingface_hub

Browse files
client/public/rebuild-nonce.txt CHANGED
@@ -1 +1 @@
1
- Rebuild nonce: 2025-10-26T17:44:15.260Z
 
1
+ Rebuild nonce: 2025-10-27T03:07:55.209Z
client/src/pages/TutorialTasks.tsx CHANGED
@@ -1172,9 +1172,7 @@ const TutorialTasks: React.FC = () => {
1172
  <textarea
1173
  id={`tutorial-translation-${taskId}`}
1174
  value={translationValue || ''}
1175
- onInput={(e) => {
1176
- onTranslationChange((e.target as HTMLTextAreaElement).value);
1177
- }}
1178
  onChange={(e) => {
1179
  onTranslationChange(e.target.value);
1180
  }}
@@ -1961,8 +1959,11 @@ const TutorialTasks: React.FC = () => {
1961
  <textarea
1962
  id={`tutorial-translation-${task._id}`}
1963
  value={translationText[task._id] || ''}
1964
- onInput={(e) => { setTranslationText({ ...translationText, [task._id]: (e.target as HTMLTextAreaElement).value }); }}
1965
- onChange={(e) => { setTranslationText({ ...translationText, [task._id]: e.target.value }); }}
 
 
 
1966
  className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 bg-white"
1967
  style={{ height: '150px' }}
1968
  rows={4}
@@ -2159,10 +2160,7 @@ const TutorialTasks: React.FC = () => {
2159
  <textarea
2160
  id={`tutorial-translation-${task._id}`}
2161
  value={translationText[task._id] || ''}
2162
- onInput={(e) => {
2163
- const value = (e.target as HTMLTextAreaElement).value;
2164
- setTranslationText({ ...translationText, [task._id]: value });
2165
- }}
2166
  onChange={(e) => {
2167
  const value = e.target.value;
2168
  setTranslationText({ ...translationText, [task._id]: value });
 
1172
  <textarea
1173
  id={`tutorial-translation-${taskId}`}
1174
  value={translationValue || ''}
1175
+
 
 
1176
  onChange={(e) => {
1177
  onTranslationChange(e.target.value);
1178
  }}
 
1959
  <textarea
1960
  id={`tutorial-translation-${task._id}`}
1961
  value={translationText[task._id] || ''}
1962
+
1963
+ onChange={(e) => {
1964
+ const value = e.target.value;
1965
+ setTranslationText({ ...translationText, [task._id]: value });
1966
+ }}
1967
  className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 bg-white"
1968
  style={{ height: '150px' }}
1969
  rows={4}
 
2160
  <textarea
2161
  id={`tutorial-translation-${task._id}`}
2162
  value={translationText[task._id] || ''}
2163
+
 
 
 
2164
  onChange={(e) => {
2165
  const value = e.target.value;
2166
  setTranslationText({ ...translationText, [task._id]: value });