diff --git a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Format.cshtml b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Format.cshtml index 89d24ec933..de58a49679 100644 --- a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Format.cshtml +++ b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Format.cshtml @@ -1,6 +1,6 @@ @using Volo.CmsKit.ViewComponents -@model DecisionCommentDateViewModel +@model FormatViewModel -
+
diff --git a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/FormatViewComponent.cs b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/FormatViewComponent.cs index cd99aabb6d..af53a3e8f1 100644 --- a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/FormatViewComponent.cs +++ b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/FormatViewComponent.cs @@ -19,11 +19,11 @@ public class FormatViewComponent : AbpViewComponent public virtual async Task InvokeAsync() { - return View("~/ViewComponents/Format.cshtml", new DecisionCommentDateViewModel()); + return View("~/ViewComponents/Format.cshtml", new FormatViewModel()); } } -public class DecisionCommentDateViewModel +public class FormatViewModel { [DisplayName("Format your date in the component")] public string Format { get; set; } diff --git a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Today.cshtml b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Today.cshtml index 9cc7d5717a..a63170e67f 100644 --- a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Today.cshtml +++ b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Today.cshtml @@ -2,4 +2,4 @@

Welcome Today Component

-

@DateTime.Now.ToString(Model.Format)

+

@DateTime.Now.ToString(Model.Format)