Skip to content

Commit 85ef836

Browse files
committed
Move SVG Icon to Data Model
1 parent a4bd08b commit 85ef836

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

MyApp.ServiceModel/Bookings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace MyApp.ServiceModel;
99

10-
[Icon(Svg = Icons.Booking)]
10+
[Icon(Svg = "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M16 10H8c-.55 0-1 .45-1 1s.45 1 1 1h8c.55 0 1-.45 1-1s-.45-1-1-1zm3-7h-1V2c0-.55-.45-1-1-1s-1 .45-1 1v1H8V2c0-.55-.45-1-1-1s-1 .45-1 1v1H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 16H6c-.55 0-1-.45-1-1V8h14v10c0 .55-.45 1-1 1zm-5-5H8c-.55 0-1 .45-1 1s.45 1 1 1h5c.55 0 1-.45 1-1s-.45-1-1-1z'/></svg>")]
1111
[Description("Booking Details")]
1212
[Notes("Captures a Persons Name & Room Booking information")]
1313
public class Booking : AuditBase
@@ -117,7 +117,7 @@ public class DeleteBooking : IDeleteDb<Booking>, IReturnVoid
117117

118118

119119
[Description("Discount Coupons")]
120-
[Icon(Svg = Icons.Coupon)]
120+
[Icon(Svg = "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M2 9.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v5.5a2.5 2.5 0 1 0 0 5V20a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-5.5a2.5 2.5 0 1 0 0-5zm2-1.532a4.5 4.5 0 0 1 0 8.064V19h16v-2.968a4.5 4.5 0 0 1 0-8.064V5H4v2.968zM9 9h6v2H9V9zm0 4h6v2H9v-2z' /></svg>")]
121121
public class Coupon
122122
{
123123
public string Id { get; set; }

MyApp.ServiceModel/Icons.cs

Lines changed: 0 additions & 9 deletions
This file was deleted.

MyApp.ServiceModel/User.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace MyApp.ServiceModel;
66
/// <summary>
77
/// Public User DTO
88
/// </summary>
9-
[Icon(Svg = Icons.User)]
9+
[Icon(Svg = "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path fill='currentColor' d='M12 4a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m0 10c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4 8-4'/></svg>")]
1010
[Alias("AspNetUsers")]
1111
public class User
1212
{

0 commit comments

Comments
 (0)