Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
martmull committed Jun 28, 2024
1 parent fc4e75f commit e41d498
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const defaultHomePagePath = '/objects/companies';

jest.mock('~/hooks/useDefaultHomePagePath');
jest.mocked(useDefaultHomePagePath).mockReturnValue({
defaultHomePagePath: '/objects/companies',
defaultHomePagePath,
});

// prettier-ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const StyledInfo = styled.div<Pick<InfoProps, 'accent'>>`
font-weight: ${({ theme }) => theme.font.weight.medium};
justify-content: space-between;
max-width: 512px;
gap: ${({ theme }) => theme.spacing(2)};
padding: ${({ theme }) => theme.spacing(2)};
${({ theme, accent }) => {
switch (accent) {
Expand Down
6 changes: 6 additions & 0 deletions packages/twenty-front/src/pages/onboarding/PaymentSuccess.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@ const StyledButtonContainer = styled.div`

export const PaymentSuccess = () => {
const theme = useTheme();
const currentUser = useRecoilValue(currentUserState);
const color =
theme.name === 'light' ? theme.grayScale.gray90 : theme.grayScale.gray10;

if (currentUser?.onboardingStatus === OnboardingStatus.Completed) {
return <></>;
}

return (
<>
<AnimatedEaseIn>
Expand Down

0 comments on commit e41d498

Please sign in to comment.