Remove dead code

This commit is contained in:
Jackson Harper 2023-08-03 14:56:07 +08:00
parent dd09ef184a
commit 4095cc7c1a
2 changed files with 0 additions and 63 deletions

View file

@ -1,33 +0,0 @@
import { Box } from './../elements/LayoutPrimitives'
type ProgressBarVProps = {
fillPercentage: number
fillColor: string
backgroundColor: string
borderRadius: string
height?: string
}
export function ProgressBarVertical(props: ProgressBarVProps): JSX.Element {
return (
<Box
css={{
height: props.height ?? '100%',
width: '2px',
borderRadius: '$1',
overflow: 'hidden',
backgroundColor: props.backgroundColor,
mr: '12px',
}}
>
<Box
css={{
height: `${props.fillPercentage}%`,
width: '100%',
backgroundColor: props.fillColor,
borderRadius: props.borderRadius,
}}
/>
</Box>
)
}

View file

@ -33,36 +33,6 @@ import { FallbackImage } from './FallbackImage'
dayjs.extend(relativeTime)
type ProgressBarProps = {
fillPercentage: number
fillColor: string
backgroundColor: string
borderRadius: string
}
export function ProgressBar(props: ProgressBarProps): JSX.Element {
return (
<Box
css={{
height: '4px',
width: '100%',
borderRadius: '$1',
overflow: 'hidden',
backgroundColor: props.backgroundColor,
}}
>
<Box
css={{
height: '100%',
width: `${props.fillPercentage}%`,
backgroundColor: props.fillColor,
borderRadius: props.borderRadius,
}}
/>
</Box>
)
}
export function LibraryGridCard(props: LinkedItemCardProps): JSX.Element {
const [isHovered, setIsHovered] = useState(false)
const [isOpen, setIsOpen] = useState(false)