Skip to content

fix: wrong export function syntax #8259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ Use HTML anchor links to navigate users to the sign-in and sign-up routes. For e
<BlockSwitcher>
<Block name="Sign in button">
```tsx title="src/components/SignInButton.tsx"
export const SignInButton() {
export default function SignInButton() {
return (
<a href="/api/auth/sign-in">
Sign In
Expand All @@ -324,7 +324,7 @@ export const SignInButton() {
</Block>
<Block name="Sign in with Google button">
```tsx title="src/components/SignInWithGoogleButton.tsx"
export const SignInWithGoogleButton() {
export default function SignInWithGoogleButton() {
return (
<a href="/api/auth/sign-in?provider=Google">
Sign In with Google
Expand All @@ -335,7 +335,7 @@ export const SignInWithGoogleButton() {
</Block>
<Block name="Sign up button">
```tsx title="src/components/SignUpButton.tsx"
export const SignUpButton() {
export default function SignUpButton() {
return (
<a href="/api/auth/sign-up">
Sign Up
Expand All @@ -346,7 +346,7 @@ export const SignUpButton() {
</Block>
<Block name="Sign out button">
```tsx title="src/components/SignOutButton.tsx"
export const SignOutButton() {
export default function SignOutButton() {
return (
<a href="/api/auth/sign-out">
Sign Out
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ Use HTML anchor links to navigate users to the sign-in and sign-up routes. For e
<BlockSwitcher>
<Block name="Sign in button">
```tsx title="src/components/SignInButton.tsx"
export const SignInButton() {
export default function SignInButton() {
return (
<a href="/api/auth/sign-in">
Sign In
Expand All @@ -307,7 +307,7 @@ export const SignInButton() {
</Block>
<Block name="Sign in with Google button">
```tsx title="src/components/SignInWithGoogleButton.tsx"
export const SignInWithGoogleButton() {
export default function SignInWithGoogleButton() {
return (
<a href="/api/auth/sign-in?provider=Google">
Sign In with Google
Expand All @@ -318,7 +318,7 @@ export const SignInWithGoogleButton() {
</Block>
<Block name="Sign up button">
```tsx title="src/components/SignUpButton.tsx"
export const SignUpButton() {
export default function SignUpButton() {
return (
<a href="/api/auth/sign-up">
Sign Up
Expand All @@ -329,7 +329,7 @@ export const SignUpButton() {
</Block>
<Block name="Sign out button">
```tsx title="src/components/SignOutButton.tsx"
export const SignOutButton() {
export default function SignOutButton() {
return (
<a href="/api/auth/sign-out">
Sign Out
Expand Down
Loading