Rename view_type
to state_type
This commit is contained in:
parent
dc2ddfb42c
commit
a08ceadd1a
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue