File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
site/src/xServices/tokens Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ import { getTokens, deleteAPIKey } from "api/api"
2
2
import { APIKey } from "api/typesGenerated"
3
3
import { displaySuccess } from "components/GlobalSnackbar/utils"
4
4
import { createMachine , assign } from "xstate"
5
- import { i18n } from "i18n"
6
-
7
- const { t } = i18n
8
5
9
6
interface Context {
10
7
tokens ?: APIKey [ ]
@@ -18,6 +15,10 @@ type Events =
18
15
| { type : "CONFIRM_DELETE_TOKEN" }
19
16
| { type : "CANCEL_DELETE_TOKEN" }
20
17
18
+ const Language = {
19
+ deleteSuccess : "Token has been deleted" ,
20
+ }
21
+
21
22
export const tokensMachine = createMachine (
22
23
{
23
24
id : "tokensState" ,
@@ -132,7 +133,7 @@ export const tokensMachine = createMachine(
132
133
} ) ,
133
134
notifySuccessTokenDeleted : ( ) => {
134
135
displaySuccess (
135
- t ( "deleteTokenSuccessMessage" , { ns : "userSettingsPage" } ) ,
136
+ Language . deleteSuccess ,
136
137
)
137
138
} ,
138
139
} ,
You can’t perform that action at this time.
0 commit comments