Skip to content

Commit

Permalink
Fixed: Interface export issue fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arifulislam5577 committed Mar 2, 2024
1 parent 68d3972 commit 65d04a9
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/src/components/Alert/Dismiss.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'
import { ButtonHTMLAttributes, ReactNode, Ref, forwardRef } from 'react'

interface DismissProps extends ButtonHTMLAttributes<HTMLButtonElement> {
export interface DismissProps extends ButtonHTMLAttributes<HTMLButtonElement> {
children?: ReactNode
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Alert/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { HTMLAttributes, ReactElement, ReactNode, Ref, cloneElement, forwardRef
import { cn } from '../../helpers/cn'
import { useAlertContext } from './AlertContext'

interface IconProps extends HTMLAttributes<SVGSVGElement> {
export interface IconProps extends HTMLAttributes<SVGSVGElement> {
children?: ReactNode
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Alert/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AnchorHTMLAttributes, ReactNode, Ref, forwardRef } from 'react'
import { cn } from '../../helpers/cn'
import { alertTheme } from './theme'

interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
children?: ReactNode
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Avatar/Counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FC, HTMLAttributes, Ref, forwardRef } from 'react'
import { cn } from '../../helpers/cn'
import { avatarTheme } from './theme'

interface CounterProps extends HTMLAttributes<HTMLDivElement> {
export interface CounterProps extends HTMLAttributes<HTMLDivElement> {
size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl'
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Pagination/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { forwardRef, HTMLAttributes } from 'react'
import { cn } from '../../helpers/cn'
import { paginationTheme } from './theme'

interface ListProps extends HTMLAttributes<HTMLUListElement> {}
export interface ListProps extends HTMLAttributes<HTMLUListElement> {}

const List = forwardRef<HTMLUListElement, ListProps>(({ children, ...props }, ref) => {
const { list } = paginationTheme
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/Pagination/Pagination.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client'
import { FC, HTMLAttributes, forwardRef } from 'react'
import { HTMLAttributes, forwardRef } from 'react'
import { cn } from '../../helpers/cn'
import { PaginationContext } from './Context'
import { GoTo } from './GoTo'
Expand All @@ -12,7 +12,7 @@ interface PaginationProps extends HTMLAttributes<HTMLElement> {
shape?: 'rounded' | 'circle'
}

const PaginationComponent: FC<PaginationProps> = forwardRef<HTMLElement, PaginationProps>(
const PaginationComponent = forwardRef<HTMLElement, PaginationProps>(
({ className, children, shape = 'rounded', ...props }, ref) => {
const { root } = paginationTheme
return (
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Skeleton/SkeletonLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { HTMLAttributes, forwardRef } from 'react'
import { cn } from '../../helpers/cn'
import { skeletonTheme } from './theme'

interface SkeletonLineProps extends HTMLAttributes<HTMLDivElement> {}
export interface SkeletonLineProps extends HTMLAttributes<HTMLDivElement> {}

const SkeletonLine = forwardRef<HTMLDivElement, SkeletonLineProps>(({ className, ...props }, ref) => {
const theme = skeletonTheme
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Slider/Rangebox.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FC, ReactNode } from 'react'
import { cn } from '../../helpers/cn'

interface SliderRangeProps {
export interface SliderRangeProps {
children?: ReactNode
className?: string
}
Expand Down

0 comments on commit 65d04a9

Please sign in to comment.