From eb11eb13de6d9e00c3fb831e18c50c091b6c8d97 Mon Sep 17 00:00:00 2001 From: Vitosavero Avila Wibisono <vitosavero.avila@ui.ac.id> Date: Fri, 15 Nov 2019 01:46:05 +0700 Subject: [PATCH] 1506688872-139-hotfix Sebagai pelamar saya bisa melihat tutorial untuk meng-apply ke internship perusahaan yang ada --- assets/js/components/TopMenu.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/components/TopMenu.jsx b/assets/js/components/TopMenu.jsx index e7b80130..d3768b61 100755 --- a/assets/js/components/TopMenu.jsx +++ b/assets/js/components/TopMenu.jsx @@ -95,7 +95,7 @@ export default class TopMenu extends React.Component { const data = TopMenu.getInfo(this.props.user); const btn = ( <Button color="blue" inverted onClick={this.handleModalClick}> - ? + Cara Apply </Button> ); return ( @@ -131,7 +131,9 @@ export default class TopMenu extends React.Component { <Menu color="blue" pointing secondary> <Image as={Link} size="small" src="/assets/img/logo.png" to="/home" /> <Menu.Menu position="right"> + {this.props.user.role === 'student' && ( <Menu.Item>{btn}</Menu.Item> + )} <Menu.Item style={{ margin: '3px' }}> {this.state.currentDate} </Menu.Item> -- GitLab