mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
* add prefix to API resources * fix pw tests * refactor config * remove unnecessary prefixes in resource names * fixes * update screenshots
24 lines
495 B
TypeScript
24 lines
495 B
TypeScript
import type { Feature } from './types';
|
|
|
|
import apis from '../apis';
|
|
import account from './account';
|
|
import blockchainInteraction from './blockchainInteraction';
|
|
|
|
const title = 'Rewards service integration';
|
|
|
|
const config: Feature<{}> = (() => {
|
|
if (apis.rewards && account.isEnabled && blockchainInteraction.isEnabled) {
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: true,
|
|
});
|
|
}
|
|
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: false,
|
|
});
|
|
})();
|
|
|
|
export default config;
|