diff --git a/Start/Client/Components/BookmarkContainer.razor b/Start/Client/Components/BookmarkContainer.razor new file mode 100644 index 0000000..7fbb2ef --- /dev/null +++ b/Start/Client/Components/BookmarkContainer.razor @@ -0,0 +1,35 @@ +@using Start.Shared + +
+ @if (this.Container == null) + { +
+
+
+
+

Loading Bookmarks

+
+

Loading Bookmarks

+ } + else if (!this.Container.BookmarkGroups?.Any() ?? true) + { +
+
+ +
+

No Bookmark Groups

+
+ } + else + { + foreach (BookmarkGroupDto group in this.Container.BookmarkGroups!) + { + + } + } +
+ +@code { + [Parameter] + public BookmarkContainerDto? Container { get; set; } +} diff --git a/Start/Client/Pages/Index.razor b/Start/Client/Pages/Index.razor index 5f217c4..6f6c51e 100644 --- a/Start/Client/Pages/Index.razor +++ b/Start/Client/Pages/Index.razor @@ -47,34 +47,7 @@ else -
- @if (this.selectedBookmarkContainer == null) - { -
-
-
-
-

Loading Bookmarks

-
-

Loading Bookmarks

- } - else if (!this.selectedBookmarkContainer.BookmarkGroups?.Any() ?? true) - { -
-
- -
-

No Bookmark Groups

-
- } - else - { - @foreach (BookmarkGroupDto group in this.selectedBookmarkContainer.BookmarkGroups!) - { - - } - } -
+