File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- import { createContext , useState } from "react" ;
2- import { Action , ObjectType , defaultBlue } from "../data/constants" ;
3- import { useUndoRedo , useTransform , useSelect } from "../hooks" ;
41import { Toast } from "@douyinfe/semi-ui" ;
2+ import { createContext , useState } from "react" ;
53import { useTranslation } from "react-i18next" ;
4+ import { Action , ObjectType , defaultBlue } from "../data/constants" ;
5+ import { useSelect , useTransform , useUndoRedo } from "../hooks" ;
66
77export const AreasContext = createContext ( null ) ;
88
@@ -59,7 +59,7 @@ export default function AreasContextProvider({ children }) {
5959 action : Action . DELETE ,
6060 element : ObjectType . AREA ,
6161 data : areas [ id ] ,
62- message : t ( "delete_area" , areas [ id ] . name ) ,
62+ message : t ( "delete_area" , { areaName : areas [ id ] . name } ) ,
6363 } ,
6464 ] ) ;
6565 setRedoStack ( [ ] ) ;
You can’t perform that action at this time.
0 commit comments