🐛 Update to match to the dioxus_free_icons view_box and xmlns definition

This commit is contained in:
2024-04-22 08:58:29 +02:00
parent b3330abecc
commit a3775e35d3
3 changed files with 19 additions and 14 deletions

View File

@@ -18,12 +18,12 @@ macro_rules! svg_text_icon {
#[derive(Copy, Clone, PartialEq)]
struct $name;
impl IconShape for $name {
fn view_box(&self) -> String {
String::from("0 0 250 50")
fn view_box(&self) -> &str {
"0 0 250 50"
}
fn xmlns(&self) -> String {
String::from("http://www.w3.org/2000/svg")
fn xmlns(&self) -> &str {
"http://www.w3.org/2000/svg"
}
fn child_elements(&self) -> Element {