Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 57d98be

Browse filesBrowse files
committed
refactor: resolve eslint warnings
1 parent b2d0ab9 commit 57d98be
Copy full SHA for 57d98be

File tree

7 files changed

+9
-20
lines changed
Filter options

7 files changed

+9
-20
lines changed

‎packages/coreui-react/src/components/card/__tests__/CCardImage.spec.tsx

Copy file name to clipboardExpand all lines: packages/coreui-react/src/components/card/__tests__/CCardImage.spec.tsx
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ test('loads and displays CCardImage component', async () => {
99
})
1010

1111
test('CCardImage customize', async () => {
12-
const { container } = render(
13-
<CCardImage className="bazinga" as="div" orientation="bottom" />,
14-
)
12+
const { container } = render(<CCardImage className="bazinga" as="div" orientation="bottom" />)
1513
expect(container).toMatchSnapshot()
1614
expect(container.firstChild).toHaveClass('bazinga')
1715
expect(container.firstChild).toHaveClass('card-img-bottom')

‎packages/coreui-react/src/components/conditional-portal/CConditionalPortal.tsx

Copy file name to clipboardExpand all lines: packages/coreui-react/src/components/conditional-portal/CConditionalPortal.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface CConditionalPortalProps {
1717
children: ReactNode
1818
/**
1919
* An HTML element or function that returns a single element, with `document.body` as the default.
20-
*
20+
*
2121
* @since v4.11.0
2222
*/
2323
container?: Element | (() => Element | null) | null

‎packages/coreui-react/src/components/dropdown/types.ts

Copy file name to clipboardExpand all lines: packages/coreui-react/src/components/dropdown/types.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export type Breakpoints =
88
| { xl: Directions }
99
| { xxl: Directions }
1010

11-
export type Alignments = Directions | Breakpoints
11+
export type Alignments = Directions | Breakpoints

‎packages/coreui-react/src/components/list-group/__tests__/CListGroupItem.spec.tsx

Copy file name to clipboardExpand all lines: packages/coreui-react/src/components/list-group/__tests__/CListGroupItem.spec.tsx
+1-7Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ test('loads and displays CListGroupItem component', async () => {
1010

1111
test('CListGroupItem customize', async () => {
1212
const { container } = render(
13-
<CListGroupItem
14-
className="bazinga"
15-
active={true}
16-
color="warning"
17-
disabled={true}
18-
as="button"
19-
>
13+
<CListGroupItem className="bazinga" active={true} color="warning" disabled={true} as="button">
2014
Test
2115
</CListGroupItem>,
2216
)

‎packages/docs/src/components/Sidebar.tsx

Copy file name to clipboardExpand all lines: packages/docs/src/components/Sidebar.tsx
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ import { AppContext } from './../AppContext'
1414

1515
import items from './../nav'
1616

17-
interface SidebarProps {
18-
currentRoute: string
19-
}
20-
21-
const Sidebar: FC<SidebarProps> = ({ ...props }) => {
17+
const Sidebar: FC = () => {
2218
return (
2319
<AppContext.Consumer>
2420
{(context) => (

‎packages/docs/src/pages/404.tsx

Copy file name to clipboardExpand all lines: packages/docs/src/pages/404.tsx
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ const NotFoundPage = () => {
1212
<Seo title="404: Not found" />
1313
<h1>404: Not Found</h1>
1414
<p>You just hit a route that doesn&#39;t exist... the sadness.</p>
15-
<CButton color="primary" href={siteUrl}>Go to documentation</CButton>
15+
<CButton color="primary" href={siteUrl}>
16+
Go to documentation
17+
</CButton>
1618
</>
1719
)
1820
}

‎packages/docs/src/templates/DefaultLayout.tsx

Copy file name to clipboardExpand all lines: packages/docs/src/templates/DefaultLayout.tsx
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const DefaultLayout: FC<DefaultLayoutProps> = ({ children, data, pageContext, pa
1919
const title = pageContext.frontmatter ? pageContext.frontmatter.title : ''
2020
const description = pageContext.frontmatter ? pageContext.frontmatter.description : ''
2121
const name = pageContext.frontmatter ? pageContext.frontmatter.name : ''
22-
const route = pageContext.frontmatter ? pageContext.frontmatter.route : ''
2322

2423
return (
2524
<AppContext.Provider
@@ -29,7 +28,7 @@ const DefaultLayout: FC<DefaultLayoutProps> = ({ children, data, pageContext, pa
2928
}}
3029
>
3130
<Seo title={title} description={description} name={name} />
32-
<Sidebar currentRoute={route} />
31+
<Sidebar />
3332
<div className="wrapper d-flex flex-column min-vh-100">
3433
<Header />
3534
<div className="body flex-grow-1 px-3">

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.