Swap the parameters to IconButton
This commit is contained in:
parent
47f979d457
commit
6a532af1fd
11 changed files with 37 additions and 37 deletions
|
@ -28,7 +28,7 @@ pub struct IconButton<S: 'static + Send + Sync> {
|
|||
}
|
||||
|
||||
impl<S: 'static + Send + Sync> IconButton<S> {
|
||||
pub fn new(icon: Icon, id: impl Into<ElementId>) -> Self {
|
||||
pub fn new(id: impl Into<ElementId>, icon: Icon) -> Self {
|
||||
Self {
|
||||
state_type: PhantomData,
|
||||
id: id.into(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue