Skip to content

Commit aaeca43

Browse files
author
Artyom Podymov
committed
* fix unit test label for Code component
* remove unnecessary styles
1 parent d6fbf79 commit aaeca43

File tree

5 files changed

+2
-17
lines changed

5 files changed

+2
-17
lines changed

redisinsight/ui/src/pages/workbench/components/enablament-area/EnablementArea/EnablementArea.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
PlainText
1616
} from './components'
1717

18-
import './styles.scss'
1918
import styles from './styles.module.scss'
2019

2120
export interface Props {

redisinsight/ui/src/pages/workbench/components/enablament-area/EnablementArea/components/Code/Code.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('Code', () => {
1717
expect(component).toBeTruthy()
1818
expect(container).toHaveTextContent(label)
1919
})
20-
it('should call onClick function if path provided', () => {
20+
it('should correctly set script', () => {
2121
const setScript = jest.fn()
2222
const label = 'Manual'
2323

redisinsight/ui/src/pages/workbench/components/enablament-area/EnablementArea/components/InternalPage/styles.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,4 @@ $margin-size-pace: 4;
112112
p + ul, p + ol {
113113
margin-top: -($margin-size-pace * 3 + px);
114114
}
115-
116-
//.sticky-footer {
117-
// position: sticky;
118-
// bottom: 0;
119-
// border-top: 1px solid var(--separatorColor);
120-
// padding: 12px 0;
121-
// background-color: var(--euiColorEmptyShade);
122-
//}
123115
}

redisinsight/ui/src/pages/workbench/components/enablament-area/EnablementArea/components/LazyInternalPage/LazyInternalPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ const LazyInternalPage = ({ onClose, title, path }: Props) => {
4444
setLoading(true)
4545
setError('')
4646
const pageInfo = getFileInfo(path)
47-
const formatter = FormatSelector.selectFor(pageInfo.extension)
4847
const relatedPages = getPagesInsideGroup(enablementArea.items, pageInfo.location)
4948
setPageData({ ...DEFAULT_PAGE_DATA, ...pageInfo, relatedPages })
5049
try {
50+
const formatter = FormatSelector.selectFor(pageInfo.extension)
5151
const { data, status } = await fetchService.get<string>(path)
5252
if (isStatusSuccessful(status)) {
5353
dispatch(setWorkbenchEAGuide(path))

redisinsight/ui/src/pages/workbench/components/enablament-area/EnablementArea/styles.scss

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)