Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[PLAY-210] Typescript Conversion: Bread Crumbs #1976

Merged
merged 4 commits into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ import {
} from '../utilities/props'

type BreadCrumbItemProps = {
aria?: object,
aria?: {[key: string]: string},
className?: string,
data?: object,
id?: string,
component?: element
component?: "a" | "span",
[x:string]: any;
}


const BreadCrumbItem = (props: BreadCrumbItemProps) => {
const {
aria = {},
Expand All @@ -28,12 +31,13 @@ const BreadCrumbItem = (props: BreadCrumbItemProps) => {
} = props
const ariaProps = buildAriaProps(aria)
const dataProps = buildDataProps(data)
const Component = component || 'span';
const css = classnames(
buildCss('pb_bread_crumb_item_kit'),
globalProps(props),
className
)
const Component = component || 'span'

return (
<div
{...ariaProps}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import {
} from '../utilities/props'

type BreadCrumbsProps = {
aria?: object,
aria?: {[key: string]: string},
className?: string,
data?: object,
id?: string,
text?: string,
children?: node
children?: React.ReactChild[] | React.ReactNode,
}
const BreadCrumbs = (props: BreadCrumbsProps) => {
const {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import BreadCrumbs from '../_bread_crumbs.jsx'
import BreadCrumbs from '../_bread_crumbs'
import { Icon, Title } from '../../'
import BreadCrumbItem from '../_bread_crumb_item'

Expand Down