Skip to content

Commit

Permalink
Revert "feat: new TrainingHeader"
Browse files Browse the repository at this point in the history
This reverts commit 1c9204f.
  • Loading branch information
Gobot1234 committed Oct 11, 2024
1 parent e9c4b81 commit cd1a219
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/forge/src/routes/_authenticated/training/$id.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import axiosInstance from "@/api/axiosInstance";
import Title from "@/components/title";
import { extractError, toTitleCase } from "@/lib/utils";
import { TrainingHeader } from "@/components/training/TrainingHeader";
import { extractError, trainingBadges } from "@/lib/utils";
import { get } from "@/services/training/get";
import type { InteractionResponse, Training } from "@ignis/types/training";
import { ExclamationTriangleIcon } from "@radix-ui/react-icons";
import { useQuery } from "@tanstack/react-query";
import { createFileRoute, notFound, useNavigate } from "@tanstack/react-router";
import { Alert, AlertDescription, AlertTitle } from "@ui/components/ui/alert";
import { Badge } from "@ui/components/ui/badge";
import { Button } from "@ui/components/ui/button";
import { Checkbox } from "@ui/components/ui/checkbox";
import { Label } from "@ui/components/ui/label";
import { Loader } from "@ui/components/ui/loader";
Expand Down Expand Up @@ -152,7 +154,7 @@ const Component: React.FC = () => {
<div className="container space-y-4 px-4 md:px-6">
<div className="space-y-2">
<h1 className="text-4xl font-bold text-center">{data.name}</h1>
<TrainingHeader />
<TrainingHeader data={data} />
<TrainingContent content={data.description} />
<br />
{sections.map((section, idx) => (
Expand Down

0 comments on commit cd1a219

Please sign in to comment.