mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-24 04:27:09 +00:00
frontend: session page improvements
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { useSolutions } from "@/pages/CompetitionSession/providers/solution-provider.tsx";
|
||||
import { useCurrentTask } from "@/pages/CompetitionSession/providers/session-provider.tsx";
|
||||
import { SolutionsStatusCard } from "../components/solutions-status-card";
|
||||
|
||||
export const SolutionStatus = () => {
|
||||
const { currentSolution: solution } = useSolutions();
|
||||
const { task } = useCurrentTask();
|
||||
|
||||
if (!solution) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <SolutionsStatusCard solution={solution} taskPoints={task.points} />;
|
||||
};
|
||||
Reference in New Issue
Block a user