Skip to content

Commit

Permalink
chore: Fix to allow links in info. Be careful with HTML though
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimple committed May 12, 2024
1 parent 0a2dc91 commit c339335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/games.information.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ const GamesInformation : GameInfoItem[] = [
"avatarUrl": "https://media.forgecdn.net/avatars/652/747/638054969273937292.png",
appWeb: [AppWeb.OverwolfApp],
os: [OperatingSystem.Windows],
info: "You should probably use CKAN instead"
info: "You should probably use <a href=\"https://github.com/KSP-CKAN/CKAN/wiki/User-guide\" target\"_blank\">CKAN</a> instead"
},
{
"id": 496,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/games.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function GameInformation(game: GameInfoItem) {
<td>{game.name}</td>
<td>{game.appWeb?.map(i => i.toString()).sort().join(", ") ?? AppWeb.Unknown}</td>
<td>{game.os?.map(i => i.toString()).sort().join(", ") ?? OperatingSystem.Unknown}</td>
<td>{game.info}</td>
<td dangerouslySetInnerHTML={{ __html: game.info }}></td>
</tr>
</>
);
Expand Down

0 comments on commit c339335

Please sign in to comment.