fix(frontend): import React explicitly in UITexts and fix toast call signature
Some checks failed
Deploy Canina / deploy (push) Has been cancelled

This commit is contained in:
parsa aghaei 2026-08-18 20:44:17 +03:30
parent 172fed92b7
commit 47437883dd
3 changed files with 554 additions and 554 deletions

View File

@ -1,4 +1,4 @@
import { useState, useEffect, useRef } from 'react';
import React, { useState, useEffect, useRef } from 'react';
import {
Languages,
Save,
@ -540,7 +540,7 @@ export default function UITexts() {
const handleSaveAll = async () => {
const dirtyKeys = Object.keys(edits);
if (dirtyKeys.length === 0) {
toast.info('هیچ تغییری برای ذخیره وجود ندارد');
toast('هیچ تغییری برای ذخیره وجود ندارد');
return;
}
setIsSavingAll(true);

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff