Skip to content

Commit d8cc73b

Browse files
committed
fix icon sizs
1 parent 91be0bb commit d8cc73b

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

packages/example/src/App.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { css } from "@emotion/react";
21
import { WalletKitProvider } from "@gokiprotocol/walletkit";
32

43
import { Body } from "./Body";
@@ -23,10 +22,6 @@ const App: React.FC = () => {
2322
name: "My App",
2423
icon: (
2524
<img
26-
css={css`
27-
width: 48px;
28-
height: 48px;
29-
`}
3025
src="https://goki.so/assets/android-chrome-256x256.png"
3126
alt="icon"
3227
/>

packages/walletkit/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"@types/react-dom": "18.0.5",
2929
"bn.js": "^5.2.1",
3030
"react": "^18.1.0",
31-
"react-dom": "^18.1.0"
31+
"react-dom": "^18.1.0",
32+
"typescript": "^4.7.2"
3233
},
3334
"dependencies": {
3435
"@react-spring/web": "^9.4.5",

packages/walletkit/src/components/WalletSelectorModal/WalletStepIntro/index.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { css } from "@emotion/react";
12
import styled from "@emotion/styled";
23

34
import { ButtonWithFooter } from "../ButtonWithFooter";
@@ -21,7 +22,19 @@ export const WalletStepIntro: React.FC<Props> = ({
2122
<AppIcons>
2223
<SolanaIcon />
2324
<ConnectDots />
24-
{appIcon}
25+
<div
26+
css={css`
27+
width: 48px;
28+
height: 48px;
29+
& > img,
30+
& > svg {
31+
width: 100%;
32+
height: 100%;
33+
}
34+
`}
35+
>
36+
{appIcon}
37+
</div>
2538
</AppIcons>
2639
</AppIconsWrapper>
2740
<Instruction>

yarn.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3785,6 +3785,7 @@ __metadata:
37853785
react-dom: "npm:^18.1.0"
37863786
react-use-gesture: "npm:^9.1.3"
37873787
tslib: "npm:^2.4.0"
3788+
typescript: "npm:^4.7.2"
37883789
peerDependencies:
37893790
"@emotion/react": ^11
37903791
"@emotion/styled": ^11

0 commit comments

Comments
 (0)