♻️ Add Account, Room and Space UI store structs
This commit is contained in:
21
src/ui/store/room.rs
Normal file
21
src/ui/store/room.rs
Normal 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 {}
|
Reference in New Issue
Block a user