Skip to content

Commit

Permalink
+ display en sentence (#117)
Browse files Browse the repository at this point in the history
* + animation delay
* + display EnSentence
  • Loading branch information
NicklausBrain authored Dec 1, 2024
1 parent 7afb8d8 commit 04eca32
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions My1kWordsEe/Components/Pages/FavoritesPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
PreloadService.Show(SpinnerColor.Light, "Saving data...");
var user = await UserAccessor.GetRequiredUserAsync(User);

Check warning on line 43 in My1kWordsEe/Components/Pages/FavoritesPage.razor

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'user' in 'Task<ApplicationUser> IdentityUserAccessor.GetRequiredUserAsync(ClaimsPrincipal user)'.
Favorites = await AddToFavoritesCommand.Invoke(user.Id, favorite);
await Task.Delay(300);
PreloadService.Hide();
StateHasChanged();
}
Expand All @@ -51,6 +52,7 @@
PreloadService.Show(SpinnerColor.Light, "Saving data...");
var user = await UserAccessor.GetRequiredUserAsync(User);

Check warning on line 53 in My1kWordsEe/Components/Pages/FavoritesPage.razor

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'user' in 'Task<ApplicationUser> IdentityUserAccessor.GetRequiredUserAsync(ClaimsPrincipal user)'.
Favorites = await RemoveFromFavoritesCommand.Invoke(user.Id, favorite);
await Task.Delay(300);
PreloadService.Hide();
StateHasChanged();
}
Expand Down
4 changes: 4 additions & 0 deletions My1kWordsEe/Components/Pages/Games/ListenToEeGamePage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
{
<li class="list-group-item list-group-item-success">
@checkResult.EeSentence
<br />
(@checkResult.EnSentence)
</li>
}
else
Expand All @@ -97,6 +99,8 @@
</li>
<li class="list-group-item list-group-item-success">
@checkResult.EeSentence
<br />
(@checkResult.EnSentence)
</li>
<li class="list-group-item list-group-item-info">
@checkResult.EnComment
Expand Down
2 changes: 2 additions & 0 deletions My1kWordsEe/Components/Pages/WordPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
PreloadService.Show(SpinnerColor.Light, "Saving data...");
var user = await UserAccessor.GetRequiredUserAsync(User);

Check warning on line 76 in My1kWordsEe/Components/Pages/WordPage.razor

View workflow job for this annotation

GitHub Actions / test

Possible null reference argument for parameter 'user' in 'Task<ApplicationUser> IdentityUserAccessor.GetRequiredUserAsync(ClaimsPrincipal user)'.

Check warning on line 76 in My1kWordsEe/Components/Pages/WordPage.razor

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'user' in 'Task<ApplicationUser> IdentityUserAccessor.GetRequiredUserAsync(ClaimsPrincipal user)'.
Favorites = await AddToFavoritesCommand.Invoke(user.Id, favorite);
await Task.Delay(300);
PreloadService.Hide();
StateHasChanged();
}
Expand All @@ -85,6 +86,7 @@
var user = await UserAccessor.GetRequiredUserAsync(User);

Check warning on line 86 in My1kWordsEe/Components/Pages/WordPage.razor

View workflow job for this annotation

GitHub Actions / test

Possible null reference argument for parameter 'user' in 'Task<ApplicationUser> IdentityUserAccessor.GetRequiredUserAsync(ClaimsPrincipal user)'.

Check warning on line 86 in My1kWordsEe/Components/Pages/WordPage.razor

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'user' in 'Task<ApplicationUser> IdentityUserAccessor.GetRequiredUserAsync(ClaimsPrincipal user)'.
Favorites = await RemoveFromFavoritesCommand.Invoke(user.Id, favorite);
PreloadService.Hide();
await Task.Delay(300);
StateHasChanged();
}

Expand Down

0 comments on commit 04eca32

Please sign in to comment.