Update tailwind, add test pages
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
// Not a page, global state that is shared between all pages
|
||||
|
||||
use crate::data::pool_match::PoolMatchList;
|
||||
use perseus::{prelude::*, state::GlobalStateCreator};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
@@ -14,9 +13,7 @@ cfg_if::cfg_if! {
|
||||
|
||||
#[derive(Serialize, Deserialize, ReactiveState, Clone)]
|
||||
#[rx(alias = "AppStateRx")]
|
||||
pub struct AppState {
|
||||
pub matches: PoolMatchList,
|
||||
}
|
||||
pub struct AppState {}
|
||||
|
||||
pub fn get_global_state_creator() -> GlobalStateCreator {
|
||||
GlobalStateCreator::new()
|
||||
@@ -26,11 +23,7 @@ pub fn get_global_state_creator() -> GlobalStateCreator {
|
||||
|
||||
#[engine_only_fn]
|
||||
fn get_state() -> AppState {
|
||||
let matches = thread::spawn(move || DATA.lock().unwrap().deref().matches.clone())
|
||||
.join()
|
||||
.unwrap();
|
||||
|
||||
AppState { matches }
|
||||
AppState {}
|
||||
}
|
||||
|
||||
#[engine_only_fn]
|
||||
|
||||
Reference in New Issue
Block a user