fix(frontend): import React explicitly in UITexts and fix toast call signature
Deploy Canina / deploy (push) Has been cancelled
Deploy Canina / deploy (push) Has been cancelled
This commit is contained in:
1 parent
172fed92b7
commit
47437883dd
3 files changed
+554
-554
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user