Skip to content

Commit b48da3d

Browse files
committed
chore: minor adjustments
1 parent 1499c25 commit b48da3d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/extension-polkagate/src/fullscreen/homeFullScreen/partials/Currency.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ export interface CurrencyItemType {
1919
}
2020

2121
interface Props {
22+
borderColor?: string;
2223
color?: string;
2324
dialogLeft?: number;
2425
fontSize?: string;
2526
height?: string;
2627
minWidth?: string;
2728
}
2829

29-
function Currency ({ color, fontSize = '22px', height, minWidth, dialogLeft=260 }: Props): React.ReactElement {
30-
// export default function Currency ({ color, fontSize = '22px' }: Props): React.ReactElement {
30+
function Currency ({ borderColor, color, dialogLeft = 260, fontSize = '22px', height, minWidth }: Props): React.ReactElement {
3131
const theme = useTheme();
3232

3333
const [anchorEl, setAnchorEl] = useState<HTMLButtonElement | null>(null);
@@ -59,6 +59,7 @@ function Currency ({ color, fontSize = '22px', height, minWidth, dialogLeft=260
5959
alignItems='center' component='button' container direction='column' item justifyContent='center' onClick={onCurrencyClick}
6060
sx={{
6161
...HEADER_COMPONENT_STYLE,
62+
borderColor: borderColor || HEADER_COMPONENT_STYLE?.borderColor,
6263
height: height || HEADER_COMPONENT_STYLE?.height,
6364
minWidth: minWidth || HEADER_COMPONENT_STYLE?.minWidth,
6465
zIndex: anchorEl && theme.zIndex.modal + 1

packages/extension-polkagate/src/partials/RemoteNodeSelectorWithSignals.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ interface ListIndicatorProps {
3838
defaultColor: string;
3939
endpointUrl: string | undefined;
4040
iconSize: number;
41-
isDark: boolean;
4241
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
4342
setCurrentDelay: React.Dispatch<React.SetStateAction<number | undefined>>;
4443
}
@@ -252,7 +251,7 @@ const ListIndicator = ({ currentDelay, defaultColor, endpointUrl, iconSize, onCl
252251
}, [onExtension]);
253252

254253
return (
255-
<Grid container item onClick={onClick} sx={{ bgcolor: bgcolorOnAccountDetail, border: isDark && !onExtension ? 2 : 1, borderColor: onExtension ? theme.palette.secondary.light : 'divider', borderRadius: '5px', cursor: 'pointer', height: `${iconSize + 7}px`, position: 'relative', width: `${iconSize + 7}px`, zIndex: 10 }}>
254+
<Grid component = 'button' container item onClick={onClick} sx={{ bgcolor: bgcolorOnAccountDetail, border: isDark && !onExtension ? 2 : 1, borderColor: onExtension ? theme.palette.secondary.light : 'divider', borderRadius: '5px', cursor: 'pointer', height: `${iconSize + 7}px`, position: 'relative', width: `${iconSize + 7}px`, zIndex: 10 }}>
256255
{isLightClient
257256
? <LightClientEndpointIcon sx={{ bottom: '2px', color: SIGNAL_COLORS.orange, fontSize: `${iconSize}px`, left: '2px', position: 'absolute' }} />
258257
: <NodeStatusIcon

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default function YouHave (): React.ReactElement {
103103
<Stack alignItems='flex-start' direction='row' sx={{ ml: '-5px' }}>
104104
<Currency
105105
color='secondary.light'
106-
dialogLeft={64}
106+
dialogLeft={60}
107107
fontSize='25px'
108108
height='27px'
109109
minWidth='27px'

0 commit comments

Comments
 (0)