Skip to content

Commit

Permalink
chore: prettier and test update
Browse files Browse the repository at this point in the history
  • Loading branch information
zone-live committed Oct 30, 2024
1 parent ba54e2e commit 8492b1e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 24 deletions.
20 changes: 10 additions & 10 deletions app/_locales/en/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/scripts/constants/sentry-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,6 @@ export const SENTRY_UI_STATE = {
switchedNetworkNeverShowMessage: false,
newPrivacyPolicyToastClickedOrClosed: false,
newPrivacyPolicyToastShownDate: false,
///: BEGIN:ONLY_INCLUDE_IF(build-flask)
solanaSupportEnabled: false,
///: END:ONLY_INCLUDE_IF
},
unconnectedAccount: true,
};
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,7 @@ export default class ExperimentalTab extends PureComponent<ExperimentalTabProps>

renderSolanaSupport() {
const { t, trackEvent } = this.context;
const {
solanaSupportEnabled,
setSolanaSupportEnabled,
} = this.props;
const { solanaSupportEnabled, setSolanaSupportEnabled } = this.props;

return (
<>
Expand Down
11 changes: 5 additions & 6 deletions ui/pages/settings/experimental-tab/experimental-tab.container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import {
///: END:ONLY_INCLUDE_IF
} from '../../../store/actions';
import {
///: BEGIN:ONLY_INCLUDE_IF(build-flask)
getIsSolanaSupportEnabled,
///: END:ONLY_INCLUDE_IF
///: BEGIN:ONLY_INCLUDE_IF(build-flask)
getIsSolanaSupportEnabled,
///: END:ONLY_INCLUDE_IF
getIsBitcoinSupportEnabled,
getIsBitcoinTestnetSupportEnabled,
///: BEGIN:ONLY_INCLUDE_IF(keyring-snaps)
Expand Down Expand Up @@ -64,9 +64,8 @@ const mapDispatchToProps = (dispatch: MetaMaskReduxDispatch) => {
return {
setWatchAccountEnabled: (value: boolean) =>
setWatchEthereumAccountEnabled(value),
///: BEGIN:ONLY_INCLUDE_IF(build-flask)
setSolanaSupportEnabled: (value: boolean) =>
setSolanaSupportEnabled(value),
///: BEGIN:ONLY_INCLUDE_IF(build-flask)
setSolanaSupportEnabled: (value: boolean) => setSolanaSupportEnabled(value),
///: END:ONLY_INCLUDE_IF
setBitcoinSupportEnabled: (value: boolean) =>
setBitcoinSupportEnabled(value),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('ExperimentalTab', () => {
const { getAllByRole } = render();
const toggle = getAllByRole('checkbox');

expect(toggle).toHaveLength(8);
expect(toggle).toHaveLength(9);
});

it('enables add account snap', async () => {
Expand Down

0 comments on commit 8492b1e

Please sign in to comment.