[Refactor] (Huge Refactoring) ReceiveRoutes: change the way define endpoints, hooks and methods.
Remove 'multi language translation enable/disable' related methods that is no longer in use from quite ago.
This commit is contained in:
@@ -23,6 +23,9 @@ export const useDeepLAuthKey = () => {
|
||||
pendingDeepLAuthKey();
|
||||
asyncStdoutToPython("/delete/data/deepl_auth_key");
|
||||
};
|
||||
const deletedDeepLAuthKey = () => {
|
||||
updateDeepLAuthKey("");
|
||||
};
|
||||
|
||||
const savedDeepLAuthKey = (data) => {
|
||||
updateDeepLAuthKey(data);
|
||||
@@ -36,6 +39,7 @@ export const useDeepLAuthKey = () => {
|
||||
setDeepLAuthKey,
|
||||
deleteDeepLAuthKey,
|
||||
|
||||
deletedDeepLAuthKey,
|
||||
savedDeepLAuthKey,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user