From acac12504def2ef18f26d96abd8868d637680621 Mon Sep 17 00:00:00 2001 From: James Cahill Date: Mon, 26 Jun 2023 12:27:28 +0100 Subject: [PATCH] (src/components): Remove unused BadgeCustomColours --- .../bootstrap/BadgeCustomColours.tsx | 68 ------------------- 1 file changed, 68 deletions(-) delete mode 100644 src/components/bootstrap/BadgeCustomColours.tsx diff --git a/src/components/bootstrap/BadgeCustomColours.tsx b/src/components/bootstrap/BadgeCustomColours.tsx deleted file mode 100644 index e9c23207..00000000 --- a/src/components/bootstrap/BadgeCustomColours.tsx +++ /dev/null @@ -1,68 +0,0 @@ -// Badge.tsx, sourced from https://github.com/react-bootstrap/react-bootstrap/blob/1498aba5c3ab6e52191178ff4dfa472e234a79de/src/Badge.tsx - -import PropTypes from "prop-types"; -import classNames from "classnames"; -import * as React from "react"; - -import { useBootstrapPrefix } from "react-bootstrap/ThemeProvider"; -import { BsPrefixProps, BsPrefixRefForwardingComponent } from "react-bootstrap/helpers"; -import { Color, Variant } from "react-bootstrap/types"; - -export interface BadgeCustomColoursProps extends BsPrefixProps, React.HTMLAttributes { - bg?: Variant; - pill?: boolean; - text?: Color; -} - -const propTypes = { - /** @default 'badge' */ - bsPrefix: PropTypes.string, - - /** - * The visual style of the badge - * - * - */ - bg: PropTypes.string, - - /** - * Add the `pill` modifier to make badges more rounded with - * some additional horizontal padding - */ - pill: PropTypes.bool, - - /** - * Sets badge text color - * - * @type {('primary'|'secondary'|'success'|'danger'|'warning'|'info'|'light'|'dark')} - */ - text: PropTypes.string, - - /** @default span */ - as: PropTypes.elementType, -}; - -const BadgeCustomColours: BsPrefixRefForwardingComponent<"span", BadgeCustomColoursProps> = - React.forwardRef( - ( - { bsPrefix, bg = "blue", pill = false, text, className, as: Component = "span", ...props }, - ref - ) => { - const prefix = useBootstrapPrefix(bsPrefix, "badge"); - return ( - - ); - } - ); - -BadgeCustomColours.displayName = "Badge"; -BadgeCustomColours.propTypes = propTypes; - -export default BadgeCustomColours;