Fixed TS Errors
Some checks failed
armco-org/shared-components/pipeline/head There was a failure building this commit
Some checks failed
armco-org/shared-components/pipeline/head There was a failure building this commit
This commit is contained in:
11
src/Tag.tsx
11
src/Tag.tsx
@@ -1,11 +0,0 @@
|
||||
import { ReactNode } from "react"
|
||||
import type { TagProps as TagProps_ } from "./types.interface"
|
||||
import "./Tag.component.scss"
|
||||
|
||||
export interface TagProps extends BaseProps { }
|
||||
|
||||
const Tag = (props: TagProps): ReactNode => {
|
||||
return <div className="ar-Tag">test</div>
|
||||
}
|
||||
|
||||
export default Tag
|
||||
@@ -183,7 +183,7 @@ const TypeAhead = (props: TypeAheadProps): ReactNode => {
|
||||
})
|
||||
|
||||
const assistiveContentRender = assistiveContent ? (
|
||||
typeof assistiveContent !== "string" &&
|
||||
typeof assistiveContent === "object" &&
|
||||
"content" in assistiveContent &&
|
||||
"onClick" in assistiveContent ? (
|
||||
<Button
|
||||
|
||||
@@ -98,6 +98,10 @@
|
||||
// ArThemes,
|
||||
// } from "./enums"
|
||||
|
||||
import { ChangeEvent, CSSProperties, FocusEvent, MouseEventHandler, ReactNode } from "react"
|
||||
import { ArPlacement, ArSizes, ArThemes } from "./enums"
|
||||
import { FunctionType, ObjectType } from "@armco/types"
|
||||
|
||||
export interface BaseProps {
|
||||
children?: ReactNode
|
||||
classes?: string
|
||||
@@ -113,15 +117,14 @@ export interface BaseProps {
|
||||
export interface FormInputProps extends BaseProps {
|
||||
ariaLabel?: string
|
||||
assistiveContent?:
|
||||
| string
|
||||
| JSX.Element
|
||||
| ReactNode
|
||||
| {
|
||||
content: string
|
||||
onClick: MouseEventHandler<HTMLButtonElement>
|
||||
}
|
||||
id?: string
|
||||
isDisabled?: boolean
|
||||
label?: string | JSX.Element
|
||||
label?: ReactNode
|
||||
labelClasses?: string
|
||||
labelPlacement?: ArPlacement
|
||||
name?: string
|
||||
@@ -129,8 +132,7 @@ export interface FormInputProps extends BaseProps {
|
||||
onChange?: FunctionType
|
||||
onFocus?: (event: FocusEvent<unknown>) => void | FunctionType
|
||||
popoverAssistiveContent?:
|
||||
| string
|
||||
| JSX.Element
|
||||
| ReactNode
|
||||
| {
|
||||
content: string
|
||||
onClick: MouseEventHandler<HTMLButtonElement>
|
||||
|
||||
Reference in New Issue
Block a user