File tree Expand file tree Collapse file tree 2 files changed +25
-25
lines changed
redisinsight/ui/src/pages/home/components/add-database-screen Expand file tree Collapse file tree 2 files changed +25
-25
lines changed Original file line number Diff line number Diff line change 1+ import styled from 'styled-components'
2+
3+ export const CustomHorizontalRule = styled . div `
4+ margin: 12px 0;
5+ width: 100%;
6+ text-align: center;
7+ position: relative;
8+
9+ &:before,
10+ &:after {
11+ content: '';
12+ display: block;
13+ width: 47%;
14+ height: 1px;
15+ background: ${ ( { theme } : { theme : Theme } ) =>
16+ theme . semantic . color . background . neutral500 } ;
17+ position: absolute;
18+ top: 50%;
19+ }
20+
21+ &:after {
22+ right: 0;
23+ }
24+ `
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import { useFormik } from 'formik'
33import { useDispatch , useSelector } from 'react-redux'
44import { useHistory } from 'react-router'
55import { toNumber } from 'lodash'
6- import styled from 'styled-components'
7- import { Theme } from '@redis-ui/styles'
86
97import { Nullable , parseRedisUrl } from 'uiSrc/utils'
108import { AddDbType , DEFAULT_TIMEOUT } from 'uiSrc/pages/home/constants'
@@ -27,29 +25,7 @@ import { RiTooltip } from 'uiSrc/components'
2725import ConnectivityOptions from './components/connectivity-options'
2826import ConnectionUrl from './components/connection-url'
2927import { Values } from './constants'
30-
31- const CustomHorizontalRule = styled . div `
32- margin: 12px 0;
33- width: 100%;
34- text-align: center;
35- position: relative;
36-
37- &:before,
38- &:after {
39- content: '';
40- display: block;
41- width: 47%;
42- height: 1px;
43- background: ${ ( { theme } : { theme : Theme } ) =>
44- theme . semantic . color . background . neutral500 } ;
45- position: absolute;
46- top: 50%;
47- }
48-
49- &:after {
50- right: 0;
51- }
52- `
28+ import { CustomHorizontalRule } from './AddDatabaseScreen.styles'
5329
5430export interface Props {
5531 onSelectOption : ( type : AddDbType , db : Nullable < Record < string , any > > ) => void
You can’t perform that action at this time.
0 commit comments