Skip to content

Commit

Permalink
fix: commented out ctf code (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
ollibowers authored Jan 7, 2024
1 parent c9cdcc9 commit 7ad2d70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
5 changes: 3 additions & 2 deletions backend/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from fastapi.middleware.cors import CORSMiddleware
from data.config import LIVE_YEAR

from server.routers import courses, planner, programs, specialisations, followups, ctf
from server.routers import courses, planner, programs, specialisations, followups

app = FastAPI()

Expand Down Expand Up @@ -45,7 +45,8 @@
app.include_router(programs.router)
app.include_router(specialisations.router)
app.include_router(followups.router)
app.include_router(ctf.router)
# TODO: hide this behind a feature flag?
# app.include_router(ctf.router)


@app.get("/")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import HelpMenu from '../HelpMenu/HelpMenu';
import ImportPlannerMenu from '../ImportPlannerMenu';
import SettingsMenu from '../SettingsMenu';
import { isPlannerEmpty } from '../utils';
import ValidateCtfButton from '../ValidateCtfButton/ValidateCtfButton';
import S from './styles';
// Used for tippy stylings
import 'tippy.js/dist/tippy.css';
Expand Down Expand Up @@ -95,11 +94,6 @@ const OptionsHeader = ({ plannerRef }: Props) => {
</Tooltip>
</div>
</Tippy>
<Tippy>
<div>
<ValidateCtfButton />
</div>
</Tippy>

{!isPlannerEmpty(years) && (
<Tooltip title="Unplan all courses">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const ModalTitle = styled(Title)`
color: ${({ theme }) => theme.text} !important;
`;

// TODO: hide this behind a feature flag?
const ValidateCtfButton = () => {
const planner = useSelector((state: RootState) => state.planner);
const degree = useSelector((state: RootState) => state.degree);
Expand Down

0 comments on commit 7ad2d70

Please sign in to comment.