Files
js/utils/parseDescription.tsx
T
Nacho Iacovino c9a708a612 Chakra issues + Audited notice on deployment + New og thumbnail (#132)
* Fix description tooltip

* Fix actions cells width

* Add new og thumbnail

* Add audited contract notice to deployment step

* Fix spacing better

* Fix lgtm
2022-05-20 19:30:36 +02:00

20 lines
436 B
TypeScript

import { Tooltip } from "@chakra-ui/react";
import { Text } from "tw-components";
export const parseDescription = (description?: string | null) => (
<Tooltip
label={
<Text whiteSpace="pre-wrap" color="inherit" p={2}>
{description}
</Text>
}
openDelay={500}
borderRadius="md"
shouldWrapChildren
>
<Text whiteSpace="pre-wrap" noOfLines={6}>
{description}
</Text>
</Tooltip>
);