aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/icons
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-09 14:29:18 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-09 14:32:23 +0200
commit812f547d84b5ce1a2924ae16f6257e4fd19efcc0 (patch)
treea7d9a931de0e93a23b1613425aa2db3c67980700 /src/app/components/icons
parent32a251aa9645de070727a6ec91490d3e9219ec7c (diff)
zeroscript: make component constructor and destructor optional
Diffstat (limited to 'src/app/components/icons')
-rw-r--r--src/app/components/icons/root.zig6
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 {},
};
}