fix: cargo fmt and readme update

This commit is contained in:
Jonathan Kelley committed 2022-02-04 17:57:00 -05:00
1 parent 04afce7992
commit 86535e150f
8 files changed
+58 -101

No files matched your search

+2 -2
View File
@@ -7,10 +7,10 @@ fn main() {
#[derive(Props, PartialEq)]
struct QuadrentProps {
color: String,
text: String
text: String,
}
fn Quadrent(cx: Scope<QuadrentProps>) -> Element{
fn Quadrent(cx: Scope<QuadrentProps>) -> Element {
cx.render(rsx! {
div {
border_width: "1px",
-3
View File
@@ -1,8 +1,5 @@
use std::cell::RefCell;
use crossterm::event::{KeyCode, KeyEvent, MouseEvent};
use dioxus::prelude::*;
use rink::InputHandler;
fn main() {
rink::launch(app);
+2 -3
View File
@@ -1,7 +1,6 @@
use std::collections::HashMap;
use dioxus::{core::ElementId, prelude::*};
use rink::TuiNode;
use dioxus::prelude::*;
fn main() {
let mut dom = VirtualDom::new(app);
@@ -19,7 +18,7 @@ fn main() {
.compute_layout(node.layout, stretch2::geometry::Size::undefined())
.unwrap();
for (id, node) in nodes.drain() {
for (_id, node) in nodes.drain() {
println!("{:?}", layout.layout(node.layout));
}
}