Rename back to div
This commit is contained in:
@@ -40,12 +40,12 @@ pub use stories::*;
|
||||
mod stories {
|
||||
use super::*;
|
||||
use crate::{ActiveTheme, Story};
|
||||
use gpui::{div, img, px, Node, ParentComponent, Render, Styled, ViewContext};
|
||||
use gpui::{div, img, px, Div, ParentComponent, Render, Styled, ViewContext};
|
||||
|
||||
pub struct PlayerStory;
|
||||
|
||||
impl Render for PlayerStory {
|
||||
type Element = Node<Self>;
|
||||
type Element = Div<Self>;
|
||||
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
||||
Story::container(cx).child(
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
use gpui::{div, Component, Node, ParentComponent, Styled, ViewContext};
|
||||
use gpui::{div, Component, Div, ParentComponent, Styled, ViewContext};
|
||||
|
||||
use crate::ActiveTheme;
|
||||
|
||||
pub struct Story {}
|
||||
|
||||
impl Story {
|
||||
pub fn container<V: 'static>(cx: &mut ViewContext<V>) -> Node<V> {
|
||||
pub fn container<V: 'static>(cx: &mut ViewContext<V>) -> Div<V> {
|
||||
div()
|
||||
.size_full()
|
||||
.flex()
|
||||
|
||||
Reference in New Issue
Block a user