File tree Expand file tree Collapse file tree 2 files changed +6
-15
lines changed
redisinsight/ui/src/pages/vector-search/query Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 1
- import { TextButton } from '@redis-ui/components'
2
1
import styled from 'styled-components'
3
2
import { FlexGroup } from 'uiSrc/components/base/layout/flex'
4
3
@@ -9,12 +8,3 @@ export const StyledHeaderAction = styled(FlexGroup)`
9
8
gap: ${ ( { theme } ) => theme . core . space . space100 } ;
10
9
margin-bottom: ${ ( { theme } ) => theme . core . space . space100 } ;
11
10
`
12
-
13
- export const StyledTextButton = styled ( TextButton ) `
14
- padding: 0px;
15
- height: auto;
16
- color: ${ ( { theme } ) => theme . color . blue400 } ;
17
- &:hover {
18
- color: ${ ( { theme } ) => theme . color . blue500 } ;
19
- }
20
- `
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import { useParams } from 'react-router-dom'
3
- import { StyledHeaderAction , StyledTextButton } from './HeaderActions.styles'
3
+ import { StyledHeaderAction } from './HeaderActions.styles'
4
4
import { ManageIndexesDrawer } from '../manage-indexes/ManageIndexesDrawer'
5
5
import { collectSavedQueriesPanelToggleTelemetry } from '../telemetry'
6
+ import { EmptyButton } from 'uiSrc/components/base/forms/buttons'
6
7
7
8
export type HeaderActionsProps = {
8
9
isManageIndexesDrawerOpen : boolean
@@ -31,12 +32,12 @@ export const HeaderActions = ({
31
32
return (
32
33
< >
33
34
< StyledHeaderAction data-testid = "vector-search-header-actions" >
34
- < StyledTextButton variant = "primary" onClick = { handleSavedQueriesClick } >
35
+ < EmptyButton onClick = { handleSavedQueriesClick } >
35
36
Saved queries
36
- </ StyledTextButton >
37
- < StyledTextButton onClick = { ( ) => setIsManageIndexesDrawerOpen ( true ) } >
37
+ </ EmptyButton >
38
+ < EmptyButton onClick = { ( ) => setIsManageIndexesDrawerOpen ( true ) } >
38
39
Manage indexes
39
- </ StyledTextButton >
40
+ </ EmptyButton >
40
41
</ StyledHeaderAction >
41
42
42
43
< ManageIndexesDrawer
You can’t perform that action at this time.
0 commit comments