File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,11 @@ import routes, { toRoute } from 'routes';
16
16
17
17
import styles from './index.scss' ;
18
18
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
+ ] ;
20
24
21
25
@withTranslation ( )
22
26
@inject ( ( { rootStore } ) => ( {
@@ -406,10 +410,10 @@ export default class Info extends Component {
406
410
return (
407
411
< Fragment >
408
412
< 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 ( ) }
413
417
</ Card >
414
418
</ Fragment >
415
419
) ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ import styles from './index.scss';
32
32
33
33
const tabs = [
34
34
{ name : 'Base Info' , value : 'baseInfo' } ,
35
- { name : 'Instructions' , value : 'readme' , disabled : true } ,
35
+ { name : 'Instructions' , value : 'readme' } ,
36
36
{ name : 'Terms of service' , value : 'service' , disabled : true } ,
37
37
{ name : 'Config File' , value : 'configFile' } ,
38
38
{ name : 'Set Price' , value : 'price' , disabled : true } ,
You can’t perform that action at this time.
0 commit comments