Rename view_type to state_type

This commit is contained in:
Marshall Bowers 2023-10-09 11:11:03 -04:00
parent dc2ddfb42c
commit a08ceadd1a

View file

@ -11,14 +11,14 @@ use crate::{
#[derive(Element)]
pub struct CollabPanel<S: 'static + Send + Sync + Clone> {
view_type: PhantomData<S>,
state_type: PhantomData<S>,
scroll_state: ScrollState,
}
impl<S: 'static + Send + Sync + Clone> CollabPanel<S> {
pub fn new(scroll_state: ScrollState) -> Self {
Self {
view_type: PhantomData,
state_type: PhantomData,
scroll_state,
}
}