-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): fix resetPassword tabs (#4723)
- Loading branch information
1 parent
b289850
commit 0bc6151
Showing
2 changed files
with
48 additions
and
37 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
...rc/pages/[platform]/connected-components/authenticator/configuration/InitialStateTabs.tsx
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { Fragment } from '@/components/Fragment'; | ||
import { Tabs } from '@aws-amplify/ui-react'; | ||
|
||
export const InitialStateTabs = () => { | ||
return ( | ||
<Tabs.Container defaultValue="sign-in"> | ||
<Tabs.List> | ||
<Tabs.Item value="sign-in">Sign In</Tabs.Item> | ||
<Tabs.Item value="sign-up">Sign Up</Tabs.Item> | ||
<Tabs.Item value="forgot-password">Forgot Password</Tabs.Item> | ||
</Tabs.List> | ||
<Tabs.Panel value="sign-in"> | ||
<Fragment> | ||
{({ platform }) => import(`./initialState.signIn.${platform}.mdx`)} | ||
</Fragment> | ||
<Fragment platforms={['web', 'flutter']} useCommonWebContent> | ||
{({ platform }) => | ||
import(`./initialState.signIn.example.${platform}.mdx`) | ||
} | ||
</Fragment> | ||
</Tabs.Panel> | ||
<Tabs.Panel value="sign-up"> | ||
<Fragment> | ||
{({ platform }) => import(`./initialState.signUp.${platform}.mdx`)} | ||
</Fragment> | ||
<Fragment platforms={['web', 'flutter']} useCommonWebContent> | ||
{({ platform }) => | ||
import(`./initialState.signUp.example.${platform}.mdx`) | ||
} | ||
</Fragment> | ||
</Tabs.Panel> | ||
<Tabs.Panel value="forgot-password"> | ||
<Fragment> | ||
{({ platform }) => | ||
import(`./initialState.forgotPassword.${platform}.mdx`) | ||
} | ||
</Fragment> | ||
<Fragment platforms={['web', 'flutter']} useCommonWebContent> | ||
{({ platform }) => | ||
import(`./initialState.forgotPassword.example.${platform}.mdx`) | ||
} | ||
</Fragment> | ||
</Tabs.Panel> | ||
</Tabs.Container> | ||
); | ||
}; |
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