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)] #[derive(Element)]
pub struct CollabPanel<S: 'static + Send + Sync + Clone> { pub struct CollabPanel<S: 'static + Send + Sync + Clone> {
view_type: PhantomData<S>, state_type: PhantomData<S>,
scroll_state: ScrollState, scroll_state: ScrollState,
} }
impl<S: 'static + Send + Sync + Clone> CollabPanel<S> { impl<S: 'static + Send + Sync + Clone> CollabPanel<S> {
pub fn new(scroll_state: ScrollState) -> Self { pub fn new(scroll_state: ScrollState) -> Self {
Self { Self {
view_type: PhantomData, state_type: PhantomData,
scroll_state, scroll_state,
} }
} }