Fakultas Ilmu Komputer UI

Commit 71f0575f authored by Jordan Muhammad Andrianda's avatar Jordan Muhammad Andrianda
Browse files

1506722765 145 Menambahkan Informasi berupa Kanal Akses Pendaftaran KP...

1506722765 145 Menambahkan Informasi berupa Kanal Akses Pendaftaran KP Elektronik pada TopMenu Perusahaan
parent 1c2ed753
......@@ -244,5 +244,14 @@ describe('TopMenu', () => {
expect(topMenu.state.applianceInformation).to.exist;
});
it('TopMenu state contain kape description', () => {
const topMenu = ReactTestUtils.renderIntoDocument(
<TopMenu user={studentUser}>
<div> test </div>
</TopMenu>
);
expect(topMenu.state.kapeDescription).to.exist;
});
});
......@@ -54,6 +54,7 @@ export default class TopMenu extends React.Component {
'4. Pastikan persyaratan sudah terpenuhi\n' +
"5. Jelaskan mengapa anda ingin mengikuti lowongan internship tersebut di 'Cover Letter'\n" +
"6. Klik tombol 'Daftar'\n",
kapeDescription: "Kanal Akses Pendaftaran KP Elektronik"
};
this.logout = this.logout.bind(this);
this.logoutCompany = this.logoutCompany.bind(this);
......@@ -129,7 +130,13 @@ 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="left">
<Menu.Item>
<Image as={Link} size="small" src="/assets/img/logo.png" to="/home" />
{this.state.kapeDescription}
</Menu.Item>
</Menu.Menu>
<Menu.Menu position="right">
{this.props.user.role === 'student' && (
<Menu.Item>{btn}</Menu.Item>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment