Skip to content

Commit 3e1fe51

Browse files
committed
Update Callout methods to accept object type for description parameter
1 parent 19e5521 commit 3e1fe51

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/Ivy/Widgets/Primitives/Callout.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ internal Callout()
4343

4444
[Event] public EventHandler<Event<Callout>>? OnClose { get; set; }
4545

46-
public static Callout Info(string? description = null, string? title = null) => new(description, title);
46+
public static Callout Info(object? description = null, string? title = null) => new(description, title);
4747

48-
public static Callout Warning(string? description = null, string? title = null) => new(description, title, CalloutVariant.Warning);
48+
public static Callout Warning(object? description = null, string? title = null) => new(description, title, CalloutVariant.Warning);
4949

50-
public static Callout Error(string? description = null, string? title = null) => new(description, title, CalloutVariant.Error);
50+
public static Callout Error(object? description = null, string? title = null) => new(description, title, CalloutVariant.Error);
5151

52-
public static Callout Success(string? description = null, string? title = null) => new(description, title, CalloutVariant.Success);
52+
public static Callout Success(object? description = null, string? title = null) => new(description, title, CalloutVariant.Success);
5353

54-
public static Callout Destructive(string? description = null, string? title = null) => new(description, title, CalloutVariant.Destructive);
54+
public static Callout Destructive(object? description = null, string? title = null) => new(description, title, CalloutVariant.Destructive);
5555
}
5656

5757
public static class CalloutExtensions

0 commit comments

Comments
 (0)