Skip to content

Commit

Permalink
fix: remove unnecessary code from App.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
brunozoric committed Feb 14, 2024
1 parent 743b9b7 commit 65d8c4b
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions apps/admin/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,12 @@
import React from "react";
import { Admin, createComponentPlugin } from "@webiny/app-serverless-cms";
import { Admin } from "@webiny/app-serverless-cms";
import { Cognito } from "@webiny/app-admin-users-cognito";
import { Components } from "@webiny/app-headless-cms";
import "./App.scss";

const MyCustomComponent = createComponentPlugin(
Components.FieldRenderers.DynamicZone.ContentItem,
Original => {
return function MyCustomComponent(props) {
const { field, children } = props;

console.log(props.bind);

return (
<Original {...props} title={`${field.label} - ${field.type}`}>
{children}
</Original>
);
};
}
);

export const App: React.FC = () => {
return (
<Admin>
<Cognito />
<MyCustomComponent />
</Admin>
);
};

0 comments on commit 65d8c4b

Please sign in to comment.