Skip to content

Commit

Permalink
Add loading to widget for smoother loading
Browse files Browse the repository at this point in the history
  • Loading branch information
itexpert120 committed Jan 30, 2024
1 parent 2a7748e commit 27a195e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/builddao/widget/components/navigation/header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const AppHeader = ({ page, routes }) => (
</ButtonGroup>
<Widget
src="buildhub.near/widget/components.buttons.Connect"
loading="User Dropdown"
props={{
connectedChildren: <div className="text-white">User Dropdown</div>,
showActivity: false,
Expand Down Expand Up @@ -169,6 +170,7 @@ const AppHeader = ({ page, routes }) => (
</ButtonGroup>
<Widget
src="buildhub.near/widget/components.buttons.Connect"
loading="User Dropdown"
props={{
connectedChildren: (
<div className="text-white mx-auto">User Dropdown</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/builddao/widget/page/home.jsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return <Widget src="buildhub.near/widget/Home" />;
return <Widget src="buildhub.near/widget/Home" loading="..." />;
1 change: 1 addition & 0 deletions apps/builddao/widget/template/AppLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function AppLayout({ routes, page, children }) {
{/* <AppHeader page={page} routes={routes} /> */}
<Widget
src="buildhub.near/widget/components.navigation.header"
loading="..."
props={{ page, routes, ...props }}
/>
<ContentContainer key={page}>{children}</ContentContainer>
Expand Down

0 comments on commit 27a195e

Please sign in to comment.