diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-09 14:29:18 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-09 14:32:23 +0200 |
| commit | 812f547d84b5ce1a2924ae16f6257e4fd19efcc0 (patch) | |
| tree | a7d9a931de0e93a23b1613425aa2db3c67980700 /src/app/components/icons/root.zig | |
| parent | 32a251aa9645de070727a6ec91490d3e9219ec7c (diff) | |
zeroscript: make component constructor and destructor optional
Diffstat (limited to 'src/app/components/icons/root.zig')
| -rw-r--r-- | src/app/components/icons/root.zig | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/app/components/icons/root.zig b/src/app/components/icons/root.zig index 298cfa6..6f7ab4a 100644 --- a/src/app/components/icons/root.zig +++ b/src/app/components/icons/root.zig @@ -6,16 +6,12 @@ pub const icons: []const zs.Component = &.{ icon("settings"), }; -const Icon = struct { - pub fn init(_: *@This(), _: *zs.Object) void {} -}; - pub fn icon(name: []const u8) zs.Component { return .{ .namespace = "icon", .name = name, .html = .parse(@embedFile(name ++ ".svg")), .css = @embedFile("index.css"), - .link = Icon, + .link = struct {}, }; } |