* Fix description tooltip * Fix actions cells width * Add new og thumbnail * Add audited contract notice to deployment step * Fix spacing better * Fix lgtm
20 lines
436 B
TypeScript
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>
|
|
);
|