diff --git a/src/app/atoms/Lines.tsx b/src/app/atoms/Lines.tsx index bb1656a14..c5b6e8ca6 100644 --- a/src/app/atoms/Lines.tsx +++ b/src/app/atoms/Lines.tsx @@ -5,40 +5,42 @@ import clsx from 'clsx'; import { T } from 'lib/i18n'; type LinesType = 'line' | 'divider' | 'or'; -type Orientation = 'horizontal' | 'vertical'; interface LinesProps { type?: LinesType; className?: string; style?: React.CSSProperties; - orientation?: Orientation; } -export const Lines = memo(({ type = 'divider', className, orientation = 'horizontal', style }) => { - const isHorizontal = orientation === 'horizontal'; - const isLine = type === 'line'; - - return ( -
-
- {type === 'or' && ( - <> - - - -
- - )} -
- ); -}); +const COMMON_CONTAINER_CLASS_NAME = 'flex items-center gap-2'; +const COMMON_LINE_CLASS_NAME = 'flex-1 border-lines'; + +export const Lines = memo(({ type = 'divider', className, style }) => ( +
+
+ {type === 'or' && ( + <> + +
+ + )} +
+)); + +export const VerticalLines = memo(({ type = 'divider', className, style }) => ( +
+
+ {type === 'or' && ( + <> + +
+ + )} +
+)); + +const OrLabel = memo(() => ( + + + +)); diff --git a/src/app/templates/About/About.tsx b/src/app/templates/About/About.tsx index f6320c044..7c14eac0f 100644 --- a/src/app/templates/About/About.tsx +++ b/src/app/templates/About/About.tsx @@ -1,6 +1,6 @@ import React, { memo } from 'react'; -import { Lines } from 'app/atoms'; +import { VerticalLines } from 'app/atoms/Lines'; import { Logo } from 'app/atoms/Logo'; import { SettingsCell } from 'app/atoms/SettingsCell'; import { SettingsCellGroup } from 'app/atoms/SettingsCellGroup'; @@ -111,7 +111,7 @@ export const About = memo(() => { {/* `branch` is equal to `version` in releases */} {branch && branch !== version && ( <> - +