Skip to content

Commit

Permalink
wallet-ext: fix import path groups order for styles
Browse files Browse the repository at this point in the history
  • Loading branch information
pchrysochoidis committed Jul 7, 2022
1 parent e9d494e commit 68cf0a9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions wallet/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ dist/
node_modules/
.next/
.swc/
out/
10 changes: 5 additions & 5 deletions wallet/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ module.exports = {
'type',
],
pathGroups: [
{
pattern: '{.,..,_*}/**/*.?(s)css',
group: 'type',
position: 'after',
},
{
pattern: '_*',
group: 'internal',
Expand All @@ -31,11 +36,6 @@ module.exports = {
pattern: '_*/**',
group: 'internal',
},
{
pattern: '{.,..}/**/*.?(s)css',
group: 'type',
position: 'after',
},
],
pathGroupsExcludedImportTypes: ['builtin', 'object', 'type'],
'newlines-between': 'always',
Expand Down
1 change: 1 addition & 0 deletions wallet/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ yarn-debug.log*
yarn-error.log*
.next/
.swc/
out/
1 change: 1 addition & 0 deletions wallet/.stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
dist/
.next/
.swc/
out/
2 changes: 1 addition & 1 deletion wallet/src/ui/app/pages/dapp-tx-approval/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { useParams } from 'react-router-dom';

import Loading from '_components/loading';
import UserApproveContainer from '_components/user-approve-container';
import stUserApprove from '_components/user-approve-container/UserApproveContainer.module.scss';
import { useAppDispatch, useAppSelector, useInitializedGuard } from '_hooks';
import {
respondToTransactionRequest,
Expand All @@ -17,6 +16,7 @@ import type { SuiJsonValue } from '@mysten/sui.js';
import type { RootState } from '_redux/RootReducer';

import st from './DappTxApprovalPage.module.scss';
import stUserApprove from '_components/user-approve-container/UserApproveContainer.module.scss';

function toList(items: SuiJsonValue[]) {
if (!items.length) {
Expand Down
3 changes: 1 addition & 2 deletions wallet/src/ui/app/pages/site-connect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import { useParams } from 'react-router-dom';

import Loading from '_components/loading';
import UserApproveContainer from '_components/user-approve-container';
// TODO: fix imports ordering for this
import stUserApprove from '_components/user-approve-container/UserApproveContainer.module.scss';
import { useAppDispatch, useAppSelector, useInitializedGuard } from '_hooks';
import {
permissionsSelectors,
Expand All @@ -18,6 +16,7 @@ import type { PermissionType } from '_messages/payloads/permissions';
import type { RootState } from '_redux/RootReducer';

import st from './SiteConnectPage.module.scss';
import stUserApprove from '_components/user-approve-container/UserApproveContainer.module.scss';

const permissionTypeToTxt: Record<PermissionType, string> = {
viewAccount: 'View Account',
Expand Down

0 comments on commit 68cf0a9

Please sign in to comment.