From 29b9b8112ff63fe6e9d66406de07b1b95143fde7 Mon Sep 17 00:00:00 2001 From: Harsha Somisetty Date: Sat, 15 Jul 2023 02:32:29 -0400 Subject: [PATCH] sidebar fix --- apps/backend-serverless/prisma/seed.ts | 1 + .../src/components/DefaultLayoutNavigation.tsx | 17 +++++++++++------ .../DefaultLayoutNavigationExternalLink.tsx | 6 ++---- .../components/DefaultLayoutNavigationLink.tsx | 7 +++---- 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/apps/backend-serverless/prisma/seed.ts b/apps/backend-serverless/prisma/seed.ts index 71ebfba7..e838f03f 100644 --- a/apps/backend-serverless/prisma/seed.ts +++ b/apps/backend-serverless/prisma/seed.ts @@ -50,6 +50,7 @@ function generateMerchantRecords(count = 1): any[] { kybInquiry: `inq_${i}`, kybState: 'finished', acceptedTermsAndConditions: true, + // acceptedPrivacyPolicy: true, dismissCompleted: false, active: true, }; diff --git a/apps/merchant-ui/src/components/DefaultLayoutNavigation.tsx b/apps/merchant-ui/src/components/DefaultLayoutNavigation.tsx index bd17a504..1d895725 100755 --- a/apps/merchant-ui/src/components/DefaultLayoutNavigation.tsx +++ b/apps/merchant-ui/src/components/DefaultLayoutNavigation.tsx @@ -56,7 +56,6 @@ export function DefaultLayoutNavigation(props: Props) { 'flex-col', 'flex', 'h-full', - 'justify-between', 'left-0', 'max-w-xs', 'px-6', @@ -100,7 +99,7 @@ export function DefaultLayoutNavigation(props: Props) { {isOk(merchantInfo) && ( <> {merchantInfo.data.completed ? ( -
+
} text="Payments" /> } text="Support" />
) : ( -
+
} @@ -124,8 +123,7 @@ export function DefaultLayoutNavigation(props: Props) { )} - - } text="Documentation" /> + } text="Privacy Policy" /> + } + text="Documentation" + /> + +
- + {/* */} ); diff --git a/apps/merchant-ui/src/components/DefaultLayoutNavigationLink.tsx b/apps/merchant-ui/src/components/DefaultLayoutNavigationLink.tsx index 9866f8c8..0e3e1f3f 100755 --- a/apps/merchant-ui/src/components/DefaultLayoutNavigationLink.tsx +++ b/apps/merchant-ui/src/components/DefaultLayoutNavigationLink.tsx @@ -1,8 +1,8 @@ -import { cloneElement } from 'react'; -import { twMerge } from 'tailwind-merge'; -import { useRouter } from 'next/router'; import * as NavigationMenu from '@radix-ui/react-navigation-menu'; import Link from 'next/link'; +import { useRouter } from 'next/router'; +import { cloneElement } from 'react'; +import { twMerge } from 'tailwind-merge'; interface Props { className?: string; @@ -21,7 +21,6 @@ export function DefaultLayoutNavigationLink(props: Props) {