Skip to content

Commit

Permalink
Export types for Breadcrumbs and TableDrawer
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Mar 10, 2021
1 parent 9ecfb6e commit 4dc5d15
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions src/components/Breadcrumbs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@ export interface BreadcrumbConfig {
onClick?: () => void
}

interface Props {
export interface BreadCrumbProps {
classes?: string[]
config: BreadcrumbConfig[]
}

export const Breadcrumbs: FC<Props> = ({ classes = [], config }: Props) => {
export const Breadcrumbs: FC<BreadCrumbProps> = ({
classes = [],
config
}: BreadCrumbProps) => {
const breadCrumbsClasses = useStyles()

const renderBreadcrumb = ({ label, onClick }: BreadcrumbConfig) =>
Expand Down
2 changes: 1 addition & 1 deletion src/components/TableDrawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const useStyles = createUseStyles({
}
})

interface TableDrawerProps<DataType> {
export interface TableDrawerProps<DataType> {
columns: ColumnType[]
data: DataType[]
loading: boolean
Expand Down

0 comments on commit 4dc5d15

Please sign in to comment.