Skip to content

Commit 1262879

Browse files
committed
style: adjust account label
1 parent 453b815 commit 1262879

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/extension-polkagate/src/fullscreen/accountDetails/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ export default function AccountDetails (): React.ReactElement {
179179
label={
180180
<AccountLabel
181181
account={account}
182-
right='0px'
183182
parentName={parentNameSuri}
183+
right='0px'
184184
/>
185185
}
186186
price={currentPrice}

packages/extension-polkagate/src/popup/home/AccountLabel.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export function AccountLabel ({ account, ml, parentName, right }: Props): React.
2626
const selectedProfile = useSelectedProfile();
2727
const { accountProfiles, defaultProfiles, userDefinedProfiles } = useProfiles(account);
2828

29-
const isDarkMode = useMemo(() => theme.palette.mode === 'dark', [theme.palette.mode]);
3029
const containerMaxWidth = useMemo(() => isExtensionMode ? '300px' : '700px', [isExtensionMode]);
3130

3231
const getColorOfUserDefinedProfile = useCallback((profile: string) => {
@@ -40,7 +39,7 @@ export function AccountLabel ({ account, ml, parentName, right }: Props): React.
4039
return getProfileColor(index, theme);
4140
}, [defaultProfiles, theme, userDefinedProfiles]);
4241

43-
const shadow = useCallback((profile: string) => isDarkMode ? `0px 0px 2px 1px ${getColorOfUserDefinedProfile(profile)}` : '0px 0px 1px 1px rgba(000, 000, 000, 0.13)', [getColorOfUserDefinedProfile, isDarkMode]);
42+
const shadow = useCallback((profile: string) => `0px 0px 2px 1px ${getColorOfUserDefinedProfile(profile)}`, [getColorOfUserDefinedProfile]);
4443

4544
const maybeAccountDefaultProfile = useMemo(() => {
4645
if (account?.isHardware) {
@@ -125,8 +124,9 @@ export function AccountLabel ({ account, ml, parentName, right }: Props): React.
125124
<Grid
126125
key={index}
127126
sx={{
128-
borderRadius: '0 0 5px 5px',
127+
borderRadius: '0 0 2px 2px',
129128
boxShadow: shadow(profile),
129+
color: 'secondary.contrastText',
130130
fontSize: '11px',
131131
height: '16px',
132132
ml: '5px',

0 commit comments

Comments
 (0)