diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ContestView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ContestView.kt index 10d75877e3..d157aa9cb2 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ContestView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ContestView.kt @@ -26,7 +26,6 @@ import react.dom.html.ReactHTML.p * Enum that defines the bar that is chosen */ enum class ContestMenuBar { - EXECUTION, INFO, SUBMISSIONS, SUMMARY, @@ -98,36 +97,33 @@ class ContestView : AbstractView(false) { } private fun ChildrenBuilder.renderContestMenuBar() { - if (state.selectedMenu != ContestMenuBar.EXECUTION) { - div { - className = ClassName("row align-items-center justify-content-center") - nav { - className = ClassName("nav nav-tabs mb-4") - ContestMenuBar.values() - .filter { it != ContestMenuBar.EXECUTION } - .forEachIndexed { i, contestMenu -> - li { - className = ClassName("nav-item") - val classVal = - if ((i == 0 && state.selectedMenu == null) || state.selectedMenu == contestMenu) { - " active font-weight-bold" - } else { - "" - } - p { - className = ClassName("nav-link $classVal text-gray-800") - onClick = { - if (state.selectedMenu != contestMenu) { - setState { - selectedMenu = contestMenu - } + div { + className = ClassName("row align-items-center justify-content-center") + nav { + className = ClassName("nav nav-tabs mb-4") + ContestMenuBar.values() + .forEachIndexed { i, contestMenu -> + li { + className = ClassName("nav-item") + val classVal = + if ((i == 0 && state.selectedMenu == null) || state.selectedMenu == contestMenu) { + " active font-weight-bold" + } else { + "" + } + p { + className = ClassName("nav-link $classVal text-gray-800") + onClick = { + if (state.selectedMenu != contestMenu) { + setState { + selectedMenu = contestMenu } } - +contestMenu.name } + +contestMenu.name } } - } + } } } }