Skip to content

Commit bafff42

Browse files
committed
Add headings to test-snaps
1 parent 01c3b7e commit bafff42

File tree

7 files changed

+11
-12
lines changed

7 files changed

+11
-12
lines changed

packages/examples/packages/browserify/snap.manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "NItYOhAaWlS9q2r59/zlpoyVUyxojfsc5xMh65mLIwQ=",
10+
"shasum": "5LsB950haZGnl0q5K7M4XgSh5J2e0p5O1Ptl/e6kpSQ=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",

packages/examples/packages/manage-state/snap.manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "3jbTBm2Gtm5+qWdWgNR2sgwEGwWmKsGK7QPeXN9yOpE=",
10+
"shasum": "fIXije73reQctVWFkOL9kdLWns7uDs7UWbPPL1J0f2o=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",

packages/test-snaps/src/features/snaps/legacy-state/LegacyState.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
MANAGE_STATE_SNAP_ID,
66
MANAGE_STATE_PORT,
77
MANAGE_STATE_VERSION,
8-
useSnapState,
9-
} from '../state';
8+
} from '../state/constants';
9+
import { useSnapState } from '../state/hooks';
1010
import { ClearData, SendData } from './components';
1111

1212
export const LegacyState: FunctionComponent = () => {
@@ -21,6 +21,7 @@ export const LegacyState: FunctionComponent = () => {
2121
version={MANAGE_STATE_VERSION}
2222
testId="manage-state"
2323
>
24+
<h3 className="h5">Encrypted state</h3>
2425
<Result className="mb-3">
2526
<span id="retrieveManageStateResult">
2627
{JSON.stringify(encryptedState, null, 2)}
@@ -30,6 +31,7 @@ export const LegacyState: FunctionComponent = () => {
3031
<SendData encrypted={true} />
3132
<ClearData encrypted={true} />
3233

34+
<h3 className="h5">Unencrypted state</h3>
3335
<Result className="mb-3">
3436
<span id="retrieveManageStateUnencryptedResult">
3537
{JSON.stringify(unencryptedState, null, 2)}

packages/test-snaps/src/features/snaps/legacy-state/components/ClearData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Button } from 'react-bootstrap';
55
import { Tag, useInvokeMutation } from '../../../../api';
66
import { Result } from '../../../../components';
77
import { getSnapId } from '../../../../utils';
8-
import { MANAGE_STATE_PORT, MANAGE_STATE_SNAP_ID } from '../../state';
8+
import { MANAGE_STATE_PORT, MANAGE_STATE_SNAP_ID } from '../../state/constants';
99

1010
export const ClearData: FunctionComponent<{ encrypted: boolean }> = ({
1111
encrypted,

packages/test-snaps/src/features/snaps/legacy-state/components/SendData.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ import { Button, Form } from 'react-bootstrap';
66
import { Tag, useInvokeMutation } from '../../../../api';
77
import { Result } from '../../../../components';
88
import { getSnapId } from '../../../../utils';
9-
import {
10-
MANAGE_STATE_PORT,
11-
MANAGE_STATE_SNAP_ID,
12-
useSnapState,
13-
} from '../../state';
9+
import { MANAGE_STATE_PORT, MANAGE_STATE_SNAP_ID } from '../../state/constants';
10+
import { useSnapState } from '../../state/hooks';
1411

1512
export const SendData: FunctionComponent<{ encrypted: boolean }> = ({
1613
encrypted,

packages/test-snaps/src/features/snaps/state/State.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const State: FunctionComponent = () => {
2121
version={MANAGE_STATE_VERSION}
2222
testId="state"
2323
>
24+
<h3 className="h5">Encrypted state</h3>
2425
<Result className="mb-3">
2526
<pre
2627
id="encryptedStateResult"
@@ -36,6 +37,7 @@ export const State: FunctionComponent = () => {
3637
<SetState encrypted={true} />
3738
<ClearState encrypted={true} />
3839

40+
<h3 className="h5">Unencrypted state</h3>
3941
<Result className="mb-3">
4042
<pre
4143
id="unencryptedStateResult"
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
export * from './constants';
2-
export * from './hooks';
31
export * from './State';

0 commit comments

Comments
 (0)