Skip to content

Commit

Permalink
(sdk) fix: add key for chils
Browse files Browse the repository at this point in the history
  • Loading branch information
pyadav committed Jun 6, 2023
1 parent 5cbbd22 commit 3894c86
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sdks/react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdks/react/package.json
@@ -1,6 +1,6 @@
{
"name": "@odpf/shield-react",
"version": "0.0.3",
"version": "0.0.4",
"description": "A react library for shield",
"type": "module",
"main": "dist/index.cjs",
Expand Down
4 changes: 2 additions & 2 deletions sdks/react/src/components/login.tsx
Expand Up @@ -7,8 +7,8 @@ export const SignedIn = ({}: SignedInProps) => {

return (
<Container>
{strategies.map((s) => (
<Button onClick={() => (window.location.href = s.endpoint)}>
{strategies.map((s, index) => (
<Button key={index} onClick={() => (window.location.href = s.endpoint)}>
Login with {s.name}
</Button>
))}
Expand Down

0 comments on commit 3894c86

Please sign in to comment.