-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated readme.md changes and fixed example.md code snippet for few r…
…elease2 screens (#29)
- Loading branch information
1 parent
d733422
commit e866148
Showing
5 changed files
with
48 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,37 @@ | ||
```js | ||
import ResetPasswordError from '@auth0/auth0-acul-js/reset-password-error'; | ||
|
||
const resetPasswordError = new ResetPasswordError(); | ||
|
||
const { screen } = resetPasswordError; | ||
const data = screen.data; | ||
|
||
const data = screen.texts?.description; | ||
console.log(data); | ||
``` | ||
## React Component Example with TailwindCSS | ||
```typescript | ||
import React from 'react'; | ||
import ResetPasswordError from '@auth0/auth0-acul-js/reset-password-error'; | ||
|
||
const ResetPasswordErrorComponent: React.FC = () => { | ||
const resetPasswordSuccessManager = new ResetPasswordError(); | ||
const { screen } = resetPasswordErrorManager; | ||
const data = screen.texts?.description; | ||
|
||
return ( | ||
<div className="w-[100vw] flex flex-col items-center justify-center min-h-screen bg-gray-100"> | ||
<div className="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4 flex flex-col"> | ||
<h2 className="text-2xl font-bold mb-6">Reset Password Error Screen</h2> | ||
{data && ( | ||
<div className="mb-4"> | ||
<p>Screen Name: {data.name}</p> | ||
</div> | ||
)} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ResetPasswordErrorComponent; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters