-
Notifications
You must be signed in to change notification settings - Fork 407
RI-7053: replace EuiFlyout with Drawer #4582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Drawer } from '@redis-ui/components' | ||
|
||
const DrawerHeader = Drawer.Header | ||
const DrawerBody = Drawer.Body | ||
const DrawerFooter = Drawer.Footer | ||
|
||
export { Drawer, DrawerHeader, DrawerBody, DrawerFooter } | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,11 @@ beforeEach(() => { | |
store.clearActions() | ||
}) | ||
|
||
jest.mock('uiSrc/components/base/layout/drawer', () => ({ | ||
...jest.requireActual('uiSrc/components/base/layout/drawer'), | ||
DrawerHeader: jest.fn().mockReturnValue(null), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this mock needed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. because the test suite fails otherwise; mocking just the DrawerHeader seems to resolve it |
||
})) | ||
|
||
const appInfoSlicesPath = 'uiSrc/slices/app/info' | ||
|
||
jest.mock(appInfoSlicesPath, () => ({ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
.title { | ||
font-size: 18px; | ||
font-weight: 600 !important; | ||
} | ||
|
||
.table { | ||
:global(thead) { | ||
display: none; | ||
|
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.