Skip to content

Commit ca0f556

Browse files
committed
Fix the exclude parameter
1 parent 3f20bc3 commit ca0f556

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

docs/additional-verification/mfa/legacy-mfa/backend-setup/first-factor.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ After following the [backend quick setup section](/docs/quickstart/backend-setup
2525
<BackendTabs>
2626
<BackendTabs.TabItem value="nodejs">
2727

28-
<NodeFrameworksCard showAppTypeSelect>
28+
<NodeFrameworksCard exclude={["awsLambda", "nextjs", "nestjs"]} showAppTypeSelect>
2929
<NodeFrameworksCard.Content value="express">
3030

3131
```tsx

docs/additional-verification/mfa/legacy-mfa/backend-setup/second-factor.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The `Passwordless.init` function should look something like this:
2525
<BackendTabs>
2626
<BackendTabs.TabItem value="nodejs">
2727

28-
<NodeFrameworksCard showAppTypeSelect>
28+
<NodeFrameworksCard exclude={["awsLambda", "nextjs", "nestjs"]} showAppTypeSelect>
2929
<NodeFrameworksCard.Content value="express">
3030

3131
```tsx

src/components/Cards/NodeFrameworksCard.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ const NodeFrameworksCardContext = createContext<NodeFrameworksCardContextType>({
1414
function NodeFrameworksCardRoot({
1515
children,
1616
showAppTypeSelect = false,
17-
}: React.PropsWithChildren<{ showAppTypeSelect?: boolean }>) {
17+
exclude = [],
18+
}: React.PropsWithChildren<{ showAppTypeSelect?: boolean; exclude?: string[] }>) {
1819
const cardHeaderPortalRightSideContentRef = useRef<HTMLDivElement>(null);
1920
return (
2021
<NodeFrameworksCardContext.Provider value={{ cardHeaderPortalRightSideContentRef }}>
2122
<CodeSampleCard>
2223
<CodeSampleCard.Header>
23-
<NodeFrameworksSelect />
24+
<NodeFrameworksSelect exclude={exclude} />
2425
<Flex gap="1" ref={cardHeaderPortalRightSideContentRef}>
2526
{showAppTypeSelect && <AppTypeSelect />}
2627
</Flex>

0 commit comments

Comments
 (0)