Quick play run
This commit is contained in:
@@ -97,7 +97,13 @@ const ProblemCard = ({
|
||||
|
||||
{/* Footer */}
|
||||
<CardFooter className="absolute bottom-4 right-4 p-0 opacity-0 group-hover:opacity-100 transition-all">
|
||||
<Button size="icon">
|
||||
<Button
|
||||
size="icon"
|
||||
onClick={async () => {
|
||||
await fetch(`http://127.0.0.1:63780/start-run/${problem.id}`);
|
||||
window.open("vscode://", "_blank");
|
||||
}}
|
||||
>
|
||||
<Zap className="h-4 w-4" />
|
||||
</Button>
|
||||
</CardFooter>
|
||||
|
||||
@@ -14,8 +14,6 @@ import { getProblems } from "@/modules/problems/actions";
|
||||
export default function Problems() {
|
||||
const [problems, problemsLoaded, problemsError] = useAction(getProblems);
|
||||
|
||||
console.log(problems);
|
||||
|
||||
const [viewMode, setViewMode] = useState<"grid" | "list">("grid");
|
||||
|
||||
const difficulties = ["All", "Easy", "Medium", "Hard"];
|
||||
|
||||
Reference in New Issue
Block a user