mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove dead code
This commit is contained in:
parent
dd09ef184a
commit
4095cc7c1a
2 changed files with 0 additions and 63 deletions
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue