Skip to content

Commit

Permalink
Finish Request Feed
Browse files Browse the repository at this point in the history
  • Loading branch information
itexpert120 committed Feb 1, 2024
1 parent eefc30f commit 3a80645
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
14 changes: 12 additions & 2 deletions apps/builddao/widget/Feed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ return (
<>
<Widget
src="buildhub.near/widget/components.modals.CreateProposal"
loading="..."
loading=""
props={{
showModal: showProposeModal,
toggleModal: toggleProposeModal,
Expand All @@ -33,9 +33,19 @@ return (
</>
)}
{!context.accountId ? ( // if not logged in
<Widget src="buildhub.near/widget/components.login-now" props={props} />
<Widget
loading=""
src="buildhub.near/widget/components.login-now"
props={props}
/>
) : (
<Widget
loading={
<div
className="placeholder-glow h-100 w-100"
style={{ height: 400 }}
></div>
}
src="buildhub.near/widget/Compose"
props={{
draftKey: feedName,
Expand Down
1 change: 1 addition & 0 deletions apps/builddao/widget/components/Post.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ return (
<div className="right d-flex flex-column gap-3">
<Widget
src="buildhub.near/widget/components.post.Header"
loading=""
props={{
accountId: accountId,
blockHeight: blockHeight,
Expand Down
4 changes: 3 additions & 1 deletion apps/builddao/widget/components/modals/CreateProposal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ return (
onChange={(e) => setSelectedOption(e.target.value)}
value={selectedOption}
>
<option selected>Open this select menu</option>
<option selected value="">
Open this select menu
</option>
<option value="text">Text</option>
<option value="transfer">Transfer</option>
<option value="functionCall">Function Call</option>
Expand Down
13 changes: 11 additions & 2 deletions apps/builddao/widget/config/feed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,21 @@ return {
blockHeight: "final",
init: {
name: "Request",
icon: "bi-file",
icon: "bi-file-earmark-text",
requiredHashtags: ["build", "request"],
template: `## REQUEST TITLE
(posted via [${daoName} Gateway](${feedLink}?tab=request))
**What are you requesting?**
- [Describe your request]
**Context or additional information:**
- [Provide any context or details]
`,
customActions: [
{
type: "modal",
icon: "bi-file",
icon: "bi-file-earmark-text",
label: "Propose",
onClick: (modalToggles) => {
console.log(modalToggles);
Expand Down

0 comments on commit 3a80645

Please sign in to comment.