Skip to content

Commit

Permalink
style: align colors and width of sub-menu's divider
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-1979 committed Oct 28, 2024
1 parent fffb353 commit 74416ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright 2019-2024 @polkadot/extension-polkagate authors & contributors
// SPDX-License-Identifier: Apache-2.0
// @ts-nocheck

/* eslint-disable react/jsx-max-props-per-line */

Expand All @@ -19,7 +18,7 @@ interface Props {
show: boolean;
}

function ImportAccSubMenu({ show, toggleSettingSubMenu }: Props): React.ReactElement<Props> {
function ImportAccSubMenu ({ show, toggleSettingSubMenu }: Props): React.ReactElement<Props> {
const { t } = useTranslation();
const theme = useTheme();
const onAction = useContext(ActionContext);
Expand Down Expand Up @@ -54,8 +53,8 @@ function ImportAccSubMenu({ show, toggleSettingSubMenu }: Props): React.ReactEle

return (
<Collapse easing={{ enter: '200ms', exit: '100ms' }} in={show} sx={{ width: '100%' }}>
<Grid container item>
<Divider sx={{ bgcolor: 'secondary.light', height: '1px', width: '100%' }} />
<Grid container item justifyContent='flex-end'>
<Divider sx={{ bgcolor: 'divider', height: '1px', mr: '10px', width: '83%' }} />
<Grid container direction='column' display='block' item sx={{ p: '10px', pr: 0 }}>
<MenuItem
fontSize='17px'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright 2019-2024 @polkadot/extension-polkagate authors & contributors
// SPDX-License-Identifier: Apache-2.0
// @ts-nocheck

/* eslint-disable react/jsx-max-props-per-line */

Expand All @@ -15,7 +14,7 @@ interface Props {
show: boolean;
}

function NewAccountSubMenu({ show }: Props): React.ReactElement<Props> {
function NewAccountSubMenu ({ show }: Props): React.ReactElement<Props> {
const { t } = useTranslation();
const theme = useTheme();
const onAction = useContext(ActionContext);
Expand All @@ -31,8 +30,8 @@ function NewAccountSubMenu({ show }: Props): React.ReactElement<Props> {

return (
<Collapse easing={{ enter: '200ms', exit: '100ms' }} in={show} sx={{ width: '100%' }}>
<Grid container item>
<Divider sx={{ bgcolor: 'secondary.light', height: '1px', width: '100%' }} />
<Grid container item justifyContent='flex-end'>
<Divider sx={{ bgcolor: 'divider', height: '1px', mr: '10px', width: '83%' }} />
<Grid container direction='column' display='block' item sx={{ p: '10px', pr: 0 }}>
<MenuItem
fontSize='17px'
Expand Down

0 comments on commit 74416ba

Please sign in to comment.