ghost-portal/packages/page-bounties/src/Description.tsx
Jaco 671f50a27a
0.130.1 (#9423)
* 0.130.1

* linting fixes
2023-05-09 08:18:01 +03:00

33 lines
710 B
TypeScript

// Copyright 2017-2023 @polkadot/app-bounties authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
import { styled } from '@polkadot/react-components';
interface Props {
className?: string;
dataTestId?: string;
description: string;
}
function Description ({ className = '', dataTestId = '', description }: Props): React.ReactElement<Props> {
return (
<StyledDiv
className={className}
data-testid={dataTestId}
>
{description}
</StyledDiv>
);
}
const StyledDiv = styled.div`
margin-top: 0.28rem;
font-size: var(--font-size-tiny);
line-height: 0.85rem;
color: var(--color-label);
`;
export default React.memo(Description);