1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

chore(account): write tests for CreateAccessToken [EE-2561] (#6578)

This commit is contained in:
Chaim Lev-Ari 2022-03-13 09:14:41 +02:00 committed by GitHub
parent b7d18ef50f
commit f1ea2b5c02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 178 additions and 27 deletions

View file

@ -0,0 +1,16 @@
import { PropsWithChildren } from 'react';
import { mockT } from './i18next';
export function useTranslation() {
return {
t: mockT,
i18n: {
changeLanguage: () => new Promise(() => {}),
},
};
}
export function Trans({ children }: PropsWithChildren<unknown>) {
return <>{children}</>;
}