Skip to content

Commit 4134ad6

Browse files
committed
refactor: syntax formatting and cleaning
1 parent 2bc8d2f commit 4134ad6

30 files changed

+46
-45
lines changed

packages/coreui-react/src/components/accordion/CAccordionBody.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import classNames from 'classnames'
55
import { CAccordionItemContext } from './CAccordionItem'
66

77
import { CCollapse } from './../collapse/CCollapse'
8+
89
export interface CAccordionBodyProps extends HTMLAttributes<HTMLDivElement> {
910
/**
1011
* A string of all className you want applied to the base component.

packages/coreui-react/src/components/accordion/CAccordionCollapse.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { forwardRef } from 'react'
22
import PropTypes from 'prop-types'
3+
34
import { CCollapse, CCollapseProps } from '../collapse/CCollapse'
45

56
export const CAccordionCollapse = forwardRef<HTMLDivElement, Omit<CCollapseProps, 'horizontal'>>(

packages/coreui-react/src/components/backdrop/CBackdrop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { forwardRef, HTMLAttributes, useRef } from 'react'
2-
import { Transition } from 'react-transition-group'
32
import PropTypes from 'prop-types'
43
import classNames from 'classnames'
4+
import { Transition } from 'react-transition-group'
55

66
import { useForkedRef } from '../../hooks'
77

packages/coreui-react/src/components/dropdown/CDropdownItem.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import React, { ElementType, forwardRef } from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
44

5-
import { CLinkProps } from '../link/CLink'
6-
import { CLink } from '../link/CLink'
5+
import { CLink, CLinkProps } from '../link/CLink'
76

87
export interface CDropdownItemProps extends CLinkProps {
98
/**

packages/coreui-react/src/components/dropdown/CDropdownToggle.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import classNames from 'classnames'
44
import { Reference } from 'react-popper'
55

66
import { CButton, CButtonProps } from '../button/CButton'
7+
78
import { CDropdownContext } from './CDropdown'
89

910
import { useForkedRef } from '../../hooks'

packages/coreui-react/src/components/form/CFormControlValidation.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { FC, ReactNode } from 'react'
2-
32
import PropTypes from 'prop-types'
43

54
import { CFormFeedback } from './CFormFeedback'

packages/coreui-react/src/components/form/CFormControlWrapper.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { FC, ReactNode } from 'react'
2-
32
import PropTypes from 'prop-types'
43

54
import { CFormControlValidation, CFormControlValidationProps } from './CFormControlValidation'

packages/coreui-react/src/components/form/CFormInput.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
import React, { ChangeEventHandler, forwardRef, InputHTMLAttributes, useState } from 'react'
2-
3-
import classNames from 'classnames'
1+
import React, {
2+
ChangeEventHandler,
3+
forwardRef,
4+
InputHTMLAttributes,
5+
useEffect,
6+
useState,
7+
} from 'react'
48
import PropTypes from 'prop-types'
9+
import classNames from 'classnames'
510

611
import { CFormControlWrapper, CFormControlWrapperProps } from './CFormControlWrapper'
7-
import { useEffect } from 'react'
812

913
export interface CFormInputProps
1014
extends CFormControlWrapperProps,

packages/coreui-react/src/components/form/CFormRange.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { ChangeEventHandler, forwardRef, InputHTMLAttributes, ReactNode } from 'react'
2-
3-
import classNames from 'classnames'
42
import PropTypes from 'prop-types'
3+
import classNames from 'classnames'
54

65
import { CFormLabel } from './CFormLabel'
76
export interface CFormRangeProps extends InputHTMLAttributes<HTMLInputElement> {

packages/coreui-react/src/components/form/CFormSelect.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { ChangeEventHandler, forwardRef, InputHTMLAttributes } from 'react'
2-
3-
import classNames from 'classnames'
42
import PropTypes from 'prop-types'
3+
import classNames from 'classnames'
54

65
import { CFormControlWrapper, CFormControlWrapperProps } from './CFormControlWrapper'
76

0 commit comments

Comments
 (0)