mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
@ -26,15 +26,9 @@ interface BorderedMenuRowProps {
|
||||
onClick?: () => void
|
||||
}
|
||||
|
||||
export const BorderedMenuRow: FC<React.PropsWithChildren<BorderedMenuRowProps>> = ({
|
||||
active,
|
||||
description,
|
||||
Icon,
|
||||
path,
|
||||
title,
|
||||
variant,
|
||||
onClick,
|
||||
}) => {
|
||||
export const BorderedMenuRow: FC<
|
||||
React.PropsWithChildren<BorderedMenuRowProps>
|
||||
> = ({ active, description, Icon, path, title, variant, onClick }) => {
|
||||
const styles = useStyles()
|
||||
|
||||
return (
|
||||
@ -53,7 +47,11 @@ export const BorderedMenuRow: FC<React.PropsWithChildren<BorderedMenuRowProps>>
|
||||
</div>
|
||||
|
||||
{description && (
|
||||
<Typography className={styles.description} color="textSecondary" variant="caption">
|
||||
<Typography
|
||||
className={styles.description}
|
||||
color="textSecondary"
|
||||
variant="caption"
|
||||
>
|
||||
{ellipsizeText(description)}
|
||||
</Typography>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user