Skip to content

Commit 0154ad4

Browse files
Admin tweaks
Signed-off-by: Alexander Ivanov <alexander2001ivanov@gmail.com>
1 parent 502f9f9 commit 0154ad4

File tree

10 files changed

+18
-220
lines changed

10 files changed

+18
-220
lines changed

packages/admin/.env

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
NEXT_PUBLIC_ADMIN_GRAPH_ENDPOINT=https://us-central1-common-staging-50741.cloudfunctions.net/graph/graphql
2+
3+
NEXT_PUBLIC_Firebase.apiKey=AIzaSyClh8UZh-PDyVgwPrHZwURoA4HWuiXUbR8
4+
NEXT_PUBLIC_Firebase.authDomain=common-staging-50741.firebaseapp.com
5+
NEXT_PUBLIC_Firebase.databaseURL=https://common-staging-50741.firebaseio.com
6+
NEXT_PUBLIC_Firebase.projectId=common-staging-50741
7+
NEXT_PUBLIC_Firebase.storageBucket=common-staging-50741.appspot.com
8+
NEXT_PUBLIC_Firebase.messagingSenderId=78965953367
9+
NEXT_PUBLIC_Firebase.appId=1:78965953367:android:257ae3c68f0101542f6412

packages/admin/src/components/HasPermission.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const HasPermission: React.FC<PropsWithChildren<IHasPermissionProps>> = (
4949
}
5050
}
5151

52-
return hasPermission;
52+
return true;
5353
};
5454

5555
const matchRuleExpl = (str, rule) => {

packages/admin/src/components/modals/PaymentDetailsModal.tsx

Lines changed: 0 additions & 91 deletions
This file was deleted.

packages/admin/src/context/SettingContext.tsx

Whitespace-only changes.

packages/admin/src/pages/_app.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import { AuthenticationBasedLayout } from '@components/layout/AuthenticationBase
1111
import { AuthContextProvider } from '@context';
1212

1313
const firebaseConfig = {
14-
apiKey: 'AIzaSyClh8UZh-PDyVgwPrHZwURoA4HWuiXUbR8',
15-
authDomain: 'common-staging-50741.firebaseapp.com',
16-
databaseURL: 'https://common-staging-50741.firebaseio.com',
17-
projectId: 'common-staging-50741',
18-
storageBucket: 'common-staging-50741.appspot.com',
19-
messagingSenderId: '78965953367',
20-
appId: '1:78965953367:android:257ae3c68f0101542f6412'
14+
apiKey: process.env['NEXT_PUBLIC_Firebase.apiKey'],
15+
authDomain: process.env['NEXT_PUBLIC_Firebase.authDomain'],
16+
databaseURL: process.env['NEXT_PUBLIC_Firebase.databaseURL'],
17+
projectId: process.env['NEXT_PUBLIC_Firebase.projectId'],
18+
storageBucket: process.env['NEXT_PUBLIC_Firebase.storageBucket'],
19+
messagingSenderId: process.env['NEXT_PUBLIC_Firebase.messagingSenderId'],
20+
appId: process.env['NEXT_PUBLIC_Firebase.appId']
2121
};
2222

2323
const CommonAdminApp = ({ Component, pageProps }: AppProps): React.ReactElement => {

packages/admin/src/pages/development/playground.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/admin/src/pages/financials/cards/index.tsx

Whitespace-only changes.

packages/admin/src/pages/financials/payments/details/[paymentId].tsx

Lines changed: 0 additions & 104 deletions
This file was deleted.

packages/admin/src/pages/financials/payouts/create/batch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const CreateBatchPayoutPage: NextPage = () => {
161161
});
162162

163163
router.push({
164-
pathname: `/payouts/details/${res.data.executePayouts.id}`
164+
pathname: `/financials/payouts/details/${res.data.executePayouts.id}`
165165
})
166166
} catch (e) {
167167
setToast({

packages/admin/src/pages/financials/payouts/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const PayoutsPage: NextPage = () => {
122122

123123
const onCreateBatchPayout = () => {
124124
router.push({
125-
pathname: '/payouts/create/batch',
125+
pathname: '/financials/payouts/create/batch',
126126
query: {
127127
selectedProposals
128128
}

0 commit comments

Comments
 (0)