♻️ Add Account, Room and Space UI store structs

This commit is contained in:
2024-05-11 15:24:49 +02:00
parent bc6b02bc34
commit 18a797bc3f
12 changed files with 152 additions and 183 deletions

21
src/ui/store/room.rs Normal file
View File

@@ -0,0 +1,21 @@
use dioxus::prelude::*;
use crate::domain::model::{
room::RoomId, room_member::RoomMember, store_interface::RoomStoreProviderInterface,
};
#[modx::props(id, name)]
#[modx::store]
pub struct Room {
id: RoomId,
name: Option<String>,
members: Vec<RoomMember>,
}
impl PartialEq for Room {
fn eq(&self, other: &Self) -> bool {
self.id == other.id
}
}
impl RoomStoreProviderInterface for Room {}