Skip to content

Commit 28b8d9b

Browse files
authored
fix: wrong export function syntax (#8259)
1 parent c0a099b commit 28b8d9b

File tree

2 files changed

+8
-8
lines changed
  • src/pages
    • [platform]/build-a-backend/server-side-rendering
    • gen1/[platform]/build-a-backend/server-side-rendering/nextjs

2 files changed

+8
-8
lines changed

src/pages/[platform]/build-a-backend/server-side-rendering/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Use HTML anchor links to navigate users to the sign-in and sign-up routes. For e
313313
<BlockSwitcher>
314314
<Block name="Sign in button">
315315
```tsx title="src/components/SignInButton.tsx"
316-
export const SignInButton() {
316+
export default function SignInButton() {
317317
return (
318318
<a href="/api/auth/sign-in">
319319
Sign In
@@ -324,7 +324,7 @@ export const SignInButton() {
324324
</Block>
325325
<Block name="Sign in with Google button">
326326
```tsx title="src/components/SignInWithGoogleButton.tsx"
327-
export const SignInWithGoogleButton() {
327+
export default function SignInWithGoogleButton() {
328328
return (
329329
<a href="/api/auth/sign-in?provider=Google">
330330
Sign In with Google
@@ -335,7 +335,7 @@ export const SignInWithGoogleButton() {
335335
</Block>
336336
<Block name="Sign up button">
337337
```tsx title="src/components/SignUpButton.tsx"
338-
export const SignUpButton() {
338+
export default function SignUpButton() {
339339
return (
340340
<a href="/api/auth/sign-up">
341341
Sign Up
@@ -346,7 +346,7 @@ export const SignUpButton() {
346346
</Block>
347347
<Block name="Sign out button">
348348
```tsx title="src/components/SignOutButton.tsx"
349-
export const SignOutButton() {
349+
export default function SignOutButton() {
350350
return (
351351
<a href="/api/auth/sign-out">
352352
Sign Out

src/pages/gen1/[platform]/build-a-backend/server-side-rendering/nextjs/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Use HTML anchor links to navigate users to the sign-in and sign-up routes. For e
296296
<BlockSwitcher>
297297
<Block name="Sign in button">
298298
```tsx title="src/components/SignInButton.tsx"
299-
export const SignInButton() {
299+
export default function SignInButton() {
300300
return (
301301
<a href="/api/auth/sign-in">
302302
Sign In
@@ -307,7 +307,7 @@ export const SignInButton() {
307307
</Block>
308308
<Block name="Sign in with Google button">
309309
```tsx title="src/components/SignInWithGoogleButton.tsx"
310-
export const SignInWithGoogleButton() {
310+
export default function SignInWithGoogleButton() {
311311
return (
312312
<a href="/api/auth/sign-in?provider=Google">
313313
Sign In with Google
@@ -318,7 +318,7 @@ export const SignInWithGoogleButton() {
318318
</Block>
319319
<Block name="Sign up button">
320320
```tsx title="src/components/SignUpButton.tsx"
321-
export const SignUpButton() {
321+
export default function SignUpButton() {
322322
return (
323323
<a href="/api/auth/sign-up">
324324
Sign Up
@@ -329,7 +329,7 @@ export const SignUpButton() {
329329
</Block>
330330
<Block name="Sign out button">
331331
```tsx title="src/components/SignOutButton.tsx"
332-
export const SignOutButton() {
332+
export default function SignOutButton() {
333333
return (
334334
<a href="/api/auth/sign-out">
335335
Sign Out

0 commit comments

Comments
 (0)