-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: dont pass all props to top level component
- Loading branch information
1 parent
9e02d28
commit ee9e1b4
Showing
20 changed files
with
419 additions
and
270 deletions.
There are no files selected for viewing
342 changes: 242 additions & 100 deletions
342
.../studio-ui-codegen-react/lib/__tests__/__snapshots__/studio-ui-codegen-react.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
18 changes: 9 additions & 9 deletions
18
...en-react/lib/__tests__/amplify-ui-renderers/__snapshots__/component-renderer.test.ts.snap
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,25 +1,25 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Component Renderers BadgeRenderer 1`] = `"<Badge {...props} {...getOverrideProps(overrides, \\"Badge\\")}></Badge>"`; | ||
exports[`Component Renderers BadgeRenderer 1`] = `"<Badge {...rest} {...getOverrideProps(overrides, \\"Badge\\")}></Badge>"`; | ||
|
||
exports[`Component Renderers BoxRenderer 1`] = `"<View {...props} {...getOverrideProps(overrides, \\"View\\")}></View>"`; | ||
exports[`Component Renderers BoxRenderer 1`] = `"<View {...rest} {...getOverrideProps(overrides, \\"View\\")}></View>"`; | ||
|
||
exports[`Component Renderers ButtonRenderer 1`] = `"<Button {...props} {...getOverrideProps(overrides, \\"Button\\")}></Button>"`; | ||
exports[`Component Renderers ButtonRenderer 1`] = `"<Button {...rest} {...getOverrideProps(overrides, \\"Button\\")}></Button>"`; | ||
|
||
exports[`Component Renderers CardRenderer 1`] = `"<Card {...props} {...getOverrideProps(overrides, \\"Card\\")}></Card>"`; | ||
exports[`Component Renderers CardRenderer 1`] = `"<Card {...rest} {...getOverrideProps(overrides, \\"Card\\")}></Card>"`; | ||
|
||
exports[`Component Renderers CollectionRenderer 1`] = `"<Collection items={items || []} {...props} {...getOverrideProps(overrides, \\"Collection\\")}>{(item, index) => ()}</Collection>"`; | ||
exports[`Component Renderers CollectionRenderer 1`] = `"<Collection items={items || []} {...rest} {...getOverrideProps(overrides, \\"Collection\\")}>{(item, index) => ()}</Collection>"`; | ||
|
||
exports[`Component Renderers CustomComponentRenderer 1`] = `"<Custom {...findChildOverrides(props.overrides, \\"Custom\\")}></Custom>"`; | ||
|
||
exports[`Component Renderers DividerRenderer 1`] = `"<Divider {...props} {...getOverrideProps(overrides, \\"Divider\\")}></Divider>"`; | ||
exports[`Component Renderers DividerRenderer 1`] = `"<Divider {...rest} {...getOverrideProps(overrides, \\"Divider\\")}></Divider>"`; | ||
|
||
exports[`Component Renderers FlexRenderer 1`] = `"<Flex {...props} {...getOverrideProps(overrides, \\"Flex\\")}></Flex>"`; | ||
exports[`Component Renderers FlexRenderer 1`] = `"<Flex {...rest} {...getOverrideProps(overrides, \\"Flex\\")}></Flex>"`; | ||
|
||
exports[`Component Renderers ImageRenderer 1`] = `"<Image {...props} {...getOverrideProps(overrides, \\"Image\\")}></Image>"`; | ||
exports[`Component Renderers ImageRenderer 1`] = `"<Image {...rest} {...getOverrideProps(overrides, \\"Image\\")}></Image>"`; | ||
|
||
exports[`Component Renderers StringRenderer basic 1`] = `"<>{\\"test\\"}</>"`; | ||
|
||
exports[`Component Renderers StringRenderer missing props 1`] = `"Failed to render String - Unexpected component structure"`; | ||
|
||
exports[`Component Renderers TextRenderer 1`] = `"<Text {...props} {...getOverrideProps(overrides, \\"Text\\")}>{\\"test\\"}</Text>"`; | ||
exports[`Component Renderers TextRenderer 1`] = `"<Text {...rest} {...getOverrideProps(overrides, \\"Text\\")}>{\\"test\\"}</Text>"`; |
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
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
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
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
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
Oops, something went wrong.