Skip to content

Commit 5eec6e2

Browse files
committed
Use TextAreaWithShortcuts for Talks
1 parent 3616ed8 commit 5eec6e2

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/LinkDotNet.Blog.Web/Features/AboutMe/Components/Talk/AddTalkEntryDialog.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
</div>
2020
<div class="mb-3">
2121
<label for="talk-content">Description</label>
22-
<InputTextArea id="talk-content" class="form-control" Rows="10"
23-
@bind-Value="@model.Description"></InputTextArea>
22+
<TextAreaWithShortcuts id="talk-content" class="form-control" Rows="10"
23+
@bind-Value="@model.Description"></TextAreaWithShortcuts>
2424
<small for="talk-content" class="form-text text-muted">You can use markdown to style your component.</small>
2525
</div>
2626
<button id="talk-submit" class="btn btn-primary" type="submit">Submit</button>
@@ -48,4 +48,4 @@
4848
model = new AddTalkEntryModel();
4949
Dialog.Close();
5050
}
51-
}
51+
}
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
namespace LinkDotNet.Blog.Web.Features.Admin.BlogPostEditor.Components;
1+
namespace LinkDotNet.Blog.Web.Features.Components;
22

33
public sealed class SelectionRange
44
{
55
public int Start { get; set; }
66

77
public int End { get; set; }
8-
}
8+
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Linq;
2-
using LinkDotNet.Blog.Web.Features.Admin.BlogPostEditor.Components;
2+
using LinkDotNet.Blog.Web.Features.Components;
33

4-
namespace LinkDotNet.Blog.UnitTests.Web.Features.Admin.BlogPostEditor.Components;
4+
namespace LinkDotNet.Blog.UnitTests.Web.Features.Components;
55

66
public class TextAreaWithShortcutsTests : TestContext
77
{
@@ -51,4 +51,4 @@ public void ShouldSetCursorPosition()
5151
setSelection.Arguments.Should().Contain(9);
5252
setSelection.Arguments.Should().Contain("**llo**");
5353
}
54-
}
54+
}

0 commit comments

Comments
 (0)