Hide backlinks on direct access

Hide the "backlinks" component when the Rules of Inference Playground is accessed directly via its URL. The backlinks should only be visible when accessed through the themes listing.
This commit is contained in:
gpt-engineer-app[bot] 2025-08-11 12:34:19 +00:00
parent 548b21aaa5
commit c7511e8d49

View file

@ -1,5 +1,4 @@
import { useState } from "react";
import { Link } from "react-router-dom";
import RulesOfInferencePlayground from "@/components/RulesOfInferencePlayground";
import SocialShare from "@/components/SocialShare";
@ -13,22 +12,6 @@ const RulesOfInferencePlaygroundPage = () => {
}`}
>
<div className="max-w-4xl mx-auto space-y-6">
<div className="flex items-center justify-between">
<Link
to="/themes/discrete-math/foundations"
className="text-primary hover:text-primary/80 font-medium"
>
Back to Foundations
</Link>
<Link
to="/themes/discrete-math"
className="text-primary hover:text-primary/80 font-medium"
>
Back to Discrete Math
</Link>
</div>
<div className="space-y-2">
<h1 className="text-3xl font-bold text-foreground">Rules of Inference Playground</h1>
<p className="text-muted-foreground">