about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-07-03 00:43:34 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-07-03 00:43:43 +0200
commit257019113200d714d86d22ccab6c18b37cd28283 (patch)
tree9733af3c1f1d2194d31128301944fbcdcbcdfc01 /MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor
parentPrefetch room info (diff)
downloadMatrixUtils-257019113200d714d86d22ccab6c18b37cd28283.tar.xz
Local changes
Diffstat (limited to 'MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor')
-rw-r--r--MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor7
1 files changed, 5 insertions, 2 deletions
diff --git a/MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor b/MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor
index 8c9e73b..09b5c32 100644
--- a/MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor
+++ b/MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor
@@ -1,4 +1,4 @@
-<a href="@href" class="btn btn-primary">
+<a href="@href" class="btn btn-primary" style="background-color: @(Color ?? "#1b6ec2");">
     @ChildContent
 </a>
 
@@ -9,5 +9,8 @@
     
     [Parameter]
     public RenderFragment ChildContent { get; set; }
-    
+
+    [Parameter]
+    public string? Color { get; set; }
+
 }
\ No newline at end of file