diff --git a/replit.nix b/replit.nix new file mode 100644 index 0000000..573982c --- /dev/null +++ b/replit.nix @@ -0,0 +1,10 @@ +{ pkgs }: { + deps = [ + pkgs.yarn + pkgs.esbuild + pkgs.nodejs-18_x + + pkgs.nodePackages.typescript + pkgs.nodePackages.typescript-language-server + ]; +} \ No newline at end of file diff --git a/rpg-buddy/src/app/components/CombatTracker.tsx b/rpg-buddy/src/app/components/CombatTracker.tsx index eb3f61a..a33ccfa 100644 --- a/rpg-buddy/src/app/components/CombatTracker.tsx +++ b/rpg-buddy/src/app/components/CombatTracker.tsx @@ -2,6 +2,7 @@ import React, { useState } from "react"; import { Character } from "../lib/definitions"; import InitiativeInputDialog from "./InitiativeInputDialog"; +import {CheckmarkIconPositive} from "../lib/SVGIcons"; const CombatTracker: React.FC = () => { const [combatCharacters, setCombatCharacters] = useState([]); @@ -12,22 +13,6 @@ const CombatTracker: React.FC = () => { null, ); - // SVG checkmark icon - const CheckmarkIcon: React.FC = () => { - return - - ; - }; const handleToggleSortDescending = () => { // Toggle the sort order @@ -183,7 +168,7 @@ const CombatTracker: React.FC = () => { // className={index === currentCharacterIndex ? "bg-gray-200" : ""} > - {index === currentCharacterIndex && } + {index === currentCharacterIndex && CheckmarkIconPositive />} {character.name} {character.initiative} diff --git a/rpg-buddy/src/app/lib/SVGIcons.tsx b/rpg-buddy/src/app/lib/SVGIcons.tsx new file mode 100644 index 0000000..c4b3220 --- /dev/null +++ b/rpg-buddy/src/app/lib/SVGIcons.tsx @@ -0,0 +1,16 @@ +// SVG checkmark icon + export const CheckmarkIconPositive: React.FC = () => { + return + + ; + }; \ No newline at end of file