Skip to content

Commit 5cd4d0d

Browse files
committed
adding fix to images without alt text and re-writing the mdx-components.jsx file to destructure the props correctly to reveal tha alt text
1 parent 1de6b54 commit 5cd4d0d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

mdx-components.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ import CustomLink from "@/components/link";
55

66
export function useMDXComponents(components) {
77
return {
8-
img: ({ src }, ...props) => (
8+
img: ({ src, alt }, ...props) => (
99
<Image
10-
alt={props.alt}
10+
alt={alt}
1111
blurDataURL={src.blurDataURL}
1212
height={src.height}
1313
placeholder="blur"
1414
src={src.src}
1515
style={{ width: "100%", height: "auto" }}
1616
width={src.width}
17+
{...props}
1718
/>
1819
),
1920
a: (props) => <CustomLink {...props} />,

src/pages/docs/how-to/authentication/images/auth-redirect-flow-2048x989-3.png renamed to src/pages/docs/how-to/authentication/images/auth-redirect-flow.png

File renamed without changes.

src/pages/docs/how-to/authentication/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Before starting, it helps to break down the process into three concepts:
1414

1515
This diagram shows the authentication flow using the Faust.js toolkit auth feature:
1616

17-
![](./images/auth-redirect-flow-2048x989-3.png)
17+
![Flow diagram illustrating authentication flow](./images/auth-redirect-flow.png)
1818

1919
Redirect-based authentication is the default strategy in the Faust.js toolkit. This strategy involves redirecting the user to WordPress to authenticate. Once the user has shown authentication, the user redirects back to the Next.js application with an authorization code, which you can then use to request a refresh and access token, thus completing the login process.
2020

0 commit comments

Comments
 (0)