Skip to content

Commit

Permalink
Add srcLink to main page and chargen page
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWilson committed Jan 5, 2024
1 parent 73c49e2 commit 04a3983
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ let Router() =
| [ Segment (_, _, view) ] -> view()
| otherwise ->
class' "mainPage" Html.div [
srcLink
Html.h1 "Shining Sword RPG apps"
for (segment, name, _) in lookup do
Html.a [prop.text name; prop.href ("#" + segment)] |> List.singleton |> Html.div
Expand Down
5 changes: 4 additions & 1 deletion src/UI/DFRPG/ChargenView.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ let View() =
let model, dispatch = React.useElmishSimple init update
let profession = swash
let output = run profession (model.currentOutput |> Option.defaultWith (fun _ -> OfferOutput<_>.fresh DFRPGCharacter.fresh [])) (RefreshedOutput >> dispatch)
output.toReactElements()
Html.div [
srcLink
output.toReactElements()
]

0 comments on commit 04a3983

Please sign in to comment.