Skip to content

Commit 7c8652a

Browse files
author
dongrui
committed
fix: Hide terms of service about app info
1 parent f50fff8 commit 7c8652a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/pages/Dashboard/Apps/Info/index.jsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ import routes, { toRoute } from 'routes';
1616

1717
import styles from './index.scss';
1818

19-
const tags = ['Base Info', 'Instructions', 'Terms of service'];
19+
const tabs = [
20+
{ name: 'Base Info', value: 'baseInfo' },
21+
{ name: 'Instructions', value: 'readme' },
22+
{ name: 'Terms of service', value: 'service', disabled: true }
23+
];
2024

2125
@withTranslation()
2226
@inject(({ rootStore }) => ({
@@ -406,10 +410,10 @@ export default class Info extends Component {
406410
return (
407411
<Fragment>
408412
<Card>
409-
<DetailTabs tabs={tags} changeTab={this.changeTab} isCardTab />
410-
{detailTab === 'Base Info' && this.renderBaseInfo()}
411-
{detailTab === 'Instructions' && this.renderInstructions()}
412-
{detailTab === 'Terms of service' && this.renderService()}
413+
<DetailTabs tabs={tabs} changeTab={this.changeTab} isCardTab />
414+
{detailTab === 'baseInfo' && this.renderBaseInfo()}
415+
{detailTab === 'readme' && this.renderInstructions()}
416+
{detailTab === 'service' && this.renderService()}
413417
</Card>
414418
</Fragment>
415419
);

src/pages/Dashboard/Reviews/Detail/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import styles from './index.scss';
3232

3333
const tabs = [
3434
{ name: 'Base Info', value: 'baseInfo' },
35-
{ name: 'Instructions', value: 'readme', disabled: true },
35+
{ name: 'Instructions', value: 'readme' },
3636
{ name: 'Terms of service', value: 'service', disabled: true },
3737
{ name: 'Config File', value: 'configFile' },
3838
{ name: 'Set Price', value: 'price', disabled: true },

0 commit comments

Comments
 (0)