Skip to content

Commit

Permalink
https://github.com/bonfire-networks/bonfire-app/issues/1043
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Oct 8, 2024
1 parent c16135b commit 86fed43
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/web/views/_old/explore_live.ex.old
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,5 @@ defmodule Bonfire.Web.ExploreLive do
|> assign(..., FeedLive.maybe_widgets(e(..., :assigns, nil), feed_name))}
end

render_sface_or_native()
# render_sface_or_native()
end
2 changes: 1 addition & 1 deletion lib/web/views/_old/home_live.ex.old
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,5 @@ defmodule Bonfire.Web.HomeLive do
|> assign(..., FeedLive.maybe_widgets(e(..., :assigns, nil), feed_name))}
end

render_sface_or_native()
# render_sface_or_native()
end
5 changes: 2 additions & 3 deletions lib/web/views/home_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ defmodule Bonfire.Web.HomeLive do
The main instance home page, mainly for guests visiting the instance
"""
use Bonfire.UI.Common.Web, :surface_live_view
# use Bonfire.UI.Common.Web.Native, :live_view
use_if_enabled(Bonfire.UI.Common.Web.Native, :view)

alias Bonfire.Me.Accounts
# alias Bonfire.UI.Social.FeedLive

# @changelog File.read!("#{Config.get(:project_path, "../..")}/docs/CHANGELOG.md")

Expand Down Expand Up @@ -109,5 +108,5 @@ defmodule Bonfire.Web.HomeLive do
}
end

render_sface_or_native()
# # render_sface_or_native()
end
7 changes: 5 additions & 2 deletions lib/web/views/home_live.swiftui.neex
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
Hello Bonfire native beta 2!
</Text>

<StatefulComponent

<%= if @feed_component_id do %>
<.stateful_component
module={maybe_component(Bonfire.UI.Social.FeedLive, @__context__)}
:if={@feed_component_id}
id={@feed_component_id}
hide_tabs
feed_id={@feed_id}
Expand All @@ -25,4 +26,6 @@
loading={@loading}
time_limit={30}
/>
<% end %>

</VStack>

0 comments on commit 86fed43

Please sign in to comment.