Skip to content

Commit

Permalink
Merge branch 'main' into poc/e2e-test
Browse files Browse the repository at this point in the history
  • Loading branch information
0618 committed Oct 31, 2023
2 parents 3aba42f + d0119b2 commit 47d2a4f
Show file tree
Hide file tree
Showing 17 changed files with 246 additions and 267 deletions.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-cooks-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@aws-amplify/form-generator': minor
---

Use "use client"; directive in generated React components
7 changes: 7 additions & 0 deletions .changeset/good-suns-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@aws-amplify/integration-tests': patch
'@aws-amplify/auth-construct-alpha': patch
'@aws-amplify/backend-auth': patch
---

Flatten loginWith type to improve autocompletion.
2 changes: 1 addition & 1 deletion examples/simple_react/amplify/auth/resource.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineAuth } from '@aws-amplify/backend-auth';
import { defineAuth } from '@aws-amplify/backend';

export const auth = defineAuth({
loginWith: {
Expand Down
4 changes: 2 additions & 2 deletions examples/simple_react/amplify/backend.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Backend } from '@aws-amplify/backend';
import { defineBackend } from '@aws-amplify/backend';
import { auth } from './auth/resource.js';
import { data } from './data/resource.js';

new Backend({
defineBackend({
auth,
data,
});
2 changes: 1 addition & 1 deletion examples/simple_react/amplify/data/resource.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineData } from '@aws-amplify/backend-graphql';
import { defineData } from '@aws-amplify/backend';

const schema = `
type Todo @model @auth(rules: [{ allow: private }]) {
Expand Down
Loading

0 comments on commit 47d2a4f

Please sign in to comment.