diff --git a/apps/envited.ascs.digital/app/dashboard/users/page.tsx b/apps/envited.ascs.digital/app/dashboard/users/page.tsx index 2f0eb02a..cf6b4a77 100644 --- a/apps/envited.ascs.digital/app/dashboard/users/page.tsx +++ b/apps/envited.ascs.digital/app/dashboard/users/page.tsx @@ -1,11 +1,13 @@ import { Users } from '../../../modules/Users' export default async function Index() { - const USERS_MAP = [{ - name: 'John Johnson', - email: 'j.johnson@ascs.digital', - id: 'did:pkh:tz:tz1SfdVU1mor3Sgej3FmmwMH4HM1EjTzqqeE', - }] + const USERS_MAP = [ + { + name: 'John Johnson', + email: 'j.johnson@ascs.digital', + id: 'did:pkh:tz:tz1SfdVU1mor3Sgej3FmmwMH4HM1EjTzqqeE', + }, + ] return } diff --git a/apps/envited.ascs.digital/common/i18n/useI18n.ts b/apps/envited.ascs.digital/common/i18n/useI18n.ts index d1acddf3..4a9b2323 100644 --- a/apps/envited.ascs.digital/common/i18n/useI18n.ts +++ b/apps/envited.ascs.digital/common/i18n/useI18n.ts @@ -8,7 +8,11 @@ import { Locale, TranslationsMap } from './types' const getTranslationsForLanguage = (namespace: string) => (locale: Locale) => pathOr({}, [locale, namespace]) const mergeTranslations = reduce(mergeDeepRight, { [Locale.en_GB]: {}, [Locale.de_DE]: {} }) -const translationObject = mergeTranslations([HeaderTranslation, HeroHeaderTranslation, UsersTranslation]) as TranslationsMap +const translationObject = mergeTranslations([ + HeaderTranslation, + HeroHeaderTranslation, + UsersTranslation, +]) as TranslationsMap export const translation = (translations: TranslationsMap) => (namespace: string) => { const t = (key: string): React.ReactElement => diff --git a/apps/envited.ascs.digital/modules/Users/Users.test.tsx b/apps/envited.ascs.digital/modules/Users/Users.test.tsx index d69dce03..97166aea 100644 --- a/apps/envited.ascs.digital/modules/Users/Users.test.tsx +++ b/apps/envited.ascs.digital/modules/Users/Users.test.tsx @@ -4,11 +4,13 @@ import { Users } from './Users' describe('Users', () => { it('should render successfully', () => { - const USERS_MAP = [{ - name: 'John Johnson', - email: 'j.johnson@ascs.digital', - id: 'did:pkh:tz:tz1SfdVU1mor3Sgej3FmmwMH4HM1EjTzqqeE', - }] + const USERS_MAP = [ + { + name: 'John Johnson', + email: 'j.johnson@ascs.digital', + id: 'did:pkh:tz:tz1SfdVU1mor3Sgej3FmmwMH4HM1EjTzqqeE', + }, + ] const { baseElement } = render() expect(baseElement).toBeTruthy() diff --git a/apps/envited.ascs.digital/modules/Users/Users.tsx b/apps/envited.ascs.digital/modules/Users/Users.tsx index 05142972..1575d7b3 100644 --- a/apps/envited.ascs.digital/modules/Users/Users.tsx +++ b/apps/envited.ascs.digital/modules/Users/Users.tsx @@ -1,11 +1,11 @@ 'use client' import { Card, Heading, Table, TableBody, TableCell, TableHeader, TableRow } from '@envited-marketplace/design-system' +import { map } from 'ramda' import React, { FC } from 'react' import { useTranslation } from '../../common/i18n' import { User } from '../../common/types/types' -import { map } from 'ramda' interface UsersProps { users: Partial[] @@ -31,13 +31,13 @@ export const Users: FC = ({ users }) => { - {map(({id, name, email }: Partial) => + {map(({ id, name, email }: Partial) => ( {id} {name} {email} - )(users)} + ))(users)}