Skip to content

Commit

Permalink
feat: remove support for TextField primitive
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilch committed Nov 4, 2021
1 parent bcc0550 commit 0815fd2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ export class AmplifyRenderer extends ReactStudioTemplateRenderer {
return new TextRenderer(component, this.importCollection, parent).renderElement();

case Primitives.TextField:
// TODO: use correct prop type
// unofficial support to retain functionality
// TODO: add official support
return new ReactComponentWithChildrenRenderer<ViewProps>(
component,
this.importCollection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import StepperFieldPrimitive from './ui-components/StepperFieldPrimitive';
import SwitchFieldPrimitive from './ui-components/SwitchFieldPrimitive';
import TabsPrimitive from './ui-components/TabsPrimitive';
import TextPrimitive from './ui-components/TextPrimitive';
import TextFieldPrimitive from './ui-components/TextFieldPrimitive';
// import TextFieldPrimitive from './ui-components/TextFieldPrimitive';
import ToggleButtonPrimitive from './ui-components/ToggleButtonPrimitive';
import ToggleButtonGroupPrimitive from './ui-components/ToggleButtonGroupPrimitive';
import ViewPrimitive from './ui-components/ViewPrimitive';
Expand Down Expand Up @@ -77,7 +77,7 @@ export default function PrimitivesTests() {
<SwitchFieldPrimitive />
<TabsPrimitive />
<TextPrimitive />
<TextFieldPrimitive />
{/* <TextFieldPrimitive /> */}
<ToggleButtonPrimitive />
<ToggleButtonGroupPrimitive />
<ViewPrimitive />
Expand Down
2 changes: 1 addition & 1 deletion packages/test-generator/lib/components/primitives/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export { default as StepperFieldPrimitive } from './StepperFieldPrimitive.json';
export { default as SwitchFieldPrimitive } from './SwitchFieldPrimitive.json';
export { default as TabsPrimitive } from './TabsPrimitive.json';
export { default as TextPrimitive } from './TextPrimitive.json';
export { default as TextFieldPrimitive } from './TextFieldPrimitive.json';
// export { default as TextFieldPrimitive } from './TextFieldPrimitive.json';
export { default as ToggleButtonPrimitive } from './ToggleButtonPrimitive.json';
export { default as ToggleButtonGroupPrimitive } from './ToggleButtonGroupPrimitive.json';
export { default as ViewPrimitive } from './ViewPrimitive.json';
Expand Down

0 comments on commit 0815fd2

Please sign in to comment.