Translation followup (#9735)
Address PR comments and more progress on translation
This commit is contained in:
@ -4,6 +4,7 @@ import { useEffect, useState } from 'react';
|
||||
import { useSearchParams } from 'react-router-dom';
|
||||
|
||||
import { useRedirect } from '@/domain-manager/hooks/useRedirect';
|
||||
import { useLingui } from '@lingui/react/macro';
|
||||
import { MainButton, UndecoratedLink } from 'twenty-ui';
|
||||
import { useAuthorizeAppMutation } from '~/generated/graphql';
|
||||
import { useNavigateApp } from '~/hooks/useNavigateApp';
|
||||
@ -55,6 +56,7 @@ const StyledButtonContainer = styled.div`
|
||||
width: 100%;
|
||||
`;
|
||||
export const Authorize = () => {
|
||||
const { t } = useLingui();
|
||||
const navigate = useNavigateApp();
|
||||
const [searchParam] = useSearchParams();
|
||||
const { redirect } = useRedirect();
|
||||
@ -119,9 +121,13 @@ export const Authorize = () => {
|
||||
<StyledText>{app?.name} wants to access your account</StyledText>
|
||||
<StyledButtonContainer>
|
||||
<UndecoratedLink to={AppPath.Index}>
|
||||
<MainButton title="Cancel" variant="secondary" fullWidth />
|
||||
<MainButton title={t`Cancel`} variant="secondary" fullWidth />
|
||||
</UndecoratedLink>
|
||||
<MainButton title="Authorize" onClick={handleAuthorize} fullWidth />
|
||||
<MainButton
|
||||
title={t`Authorize`}
|
||||
onClick={handleAuthorize}
|
||||
fullWidth
|
||||
/>
|
||||
</StyledButtonContainer>
|
||||
</StyledCardWrapper>
|
||||
</StyledContainer>
|
||||
|
||||
@ -185,9 +185,7 @@ export const PasswordReset = () => {
|
||||
<Skeleton
|
||||
height={SKELETON_LOADER_HEIGHT_SIZES.standard.m}
|
||||
count={2}
|
||||
style={{
|
||||
marginBottom: theme.spacing(2),
|
||||
}}
|
||||
style={{ marginBottom: theme.spacing(2) }}
|
||||
/>
|
||||
</SkeletonTheme>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user