diff --git a/app/cards/Objectives/Objective.tsx b/app/cards/Objectives/Objective.tsx new file mode 100644 index 00000000..c34da34a --- /dev/null +++ b/app/cards/Objectives/Objective.tsx @@ -0,0 +1,65 @@ +import { q } from "@thorium/context/AppContext"; +import { cn } from "@thorium/utils/cn"; + +export function Objective({ + id, + state, + crewComplete, + title, + description, + size, +}: { + id: number; + state: "cancelled" | "complete" | "active"; + crewComplete: boolean; + title: string; + description?: string; + size?: "sm"; +}) { + return ( +
+ +
+

+ {title} +

+ {size === "sm" ? null : ( +

{description}

+ )} +
+
+ ); +} diff --git a/app/cards/Objectives/index.tsx b/app/cards/Objectives/index.tsx index cef5f96b..7240e61a 100644 --- a/app/cards/Objectives/index.tsx +++ b/app/cards/Objectives/index.tsx @@ -1,6 +1,6 @@ +import { Objective } from "@thorium/cards/Objectives/Objective"; import { q } from "@thorium/context/AppContext"; import { useStation } from "@thorium/routes/station/useStation"; -import { cn } from "@thorium/utils/cn"; export function Objectives() { const { shipId } = useStation(); @@ -31,66 +31,3 @@ export function Objectives() { ); } - -export function Objective({ - id, - state, - crewComplete, - title, - description, - size, -}: { - id: number; - state: "cancelled" | "complete" | "active"; - crewComplete: boolean; - title: string; - description?: string; - size?: "sm"; -}) { - return ( -
- -
-

- {title} -

- {size === "sm" ? null : ( -

{description}

- )} -
-
- ); -} diff --git a/app/cards/Viewscreen/gizmos/Objectives.tsx b/app/cards/Viewscreen/gizmos/Objectives.tsx index 35c9d4ba..d0015475 100644 --- a/app/cards/Viewscreen/gizmos/Objectives.tsx +++ b/app/cards/Viewscreen/gizmos/Objectives.tsx @@ -1,4 +1,4 @@ -import { Objective } from "@thorium/cards/Objectives"; +import { Objective } from "@thorium/cards/Objectives/Objective"; import { q } from "@thorium/context/AppContext"; import { useStation } from "@thorium/routes/station/useStation"; import { cn } from "@thorium/utils/cn"; diff --git a/app/routes/quickStart/ship.tsx b/app/routes/quickStart/ship.tsx index d2d045b0..55d45f6b 100644 --- a/app/routes/quickStart/ship.tsx +++ b/app/routes/quickStart/ship.tsx @@ -211,7 +211,7 @@ function ShipConfig({ } />
-

Crew Count

+

Station Count