Migrate to a monorepo structure (#2909)
This commit is contained in:
19
packages/twenty-docs/src/ui/display/entityChipCode.js
Normal file
19
packages/twenty-docs/src/ui/display/entityChipCode.js
Normal file
@ -0,0 +1,19 @@
|
||||
import { BrowserRouter as Router } from "react-router-dom";
|
||||
import { EntityChip } from "@/ui/display/chip/components/EntityChip";
|
||||
import { IconComponent } from "@/ui/display/icon/types/IconComponent";
|
||||
|
||||
export const MyComponent = () => {
|
||||
return (
|
||||
<Router>
|
||||
<EntityChip
|
||||
linkToEntity="/entity-link"
|
||||
entityId="entityTest"
|
||||
name="Entity name"
|
||||
pictureUrl=""
|
||||
avatarType="rounded"
|
||||
variant="regular"
|
||||
LeftIcon={IconComponent}
|
||||
/>
|
||||
</Router>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user