Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem authored Mar 22, 2024
2 parents 21d5a5d + ab57343 commit f2b8dba
Show file tree
Hide file tree
Showing 9 changed files with 687 additions and 427 deletions.
3 changes: 0 additions & 3 deletions apps/builddao/widget/Profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ if (!accountId) {
}

const profile = Social.getr(`${accountId}/profile`);
if (!profile) {
return "";
}

const ProfileContainer = styled.div`
display: grid;
Expand Down
30 changes: 27 additions & 3 deletions apps/builddao/widget/Resources.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,43 @@ const { Header } = VM.require("buildhub.near/widget/components.Header") || {
Header: () => <></>,
};

const { Post } = VM.require("buildhub.near/widget/components") || {
Post: () => <></>,
};

const { MarkdownView } = VM.require("buildhub.near/widget/md-view") || {
MarkdownView: () => <></>,
};

const mdPath = props.mdPath;
const postAccountId = props.postAccountId;

if (mdPath && !postAccountId) {
return (
<div>
<Header>{props.name}</Header>
<MarkdownView path={mdPath} />
</div>
);
}

if (!mdPath && postAccountId) {
return (
<div>
<Header>{props.name}</Header>

if (!mdPath) {
return <p>No Markdown path configured</p>;
<Post
accountId={postAccountId}
blockHeight={props.postBlockHeight}
noBorder={true}
/>
</div>
);
}

return (
<div>
<Header>{props.name}</Header>
<MarkdownView path={mdPath} />
<p>No mdPath or post accountId configured</p>
</div>
);
1 change: 1 addition & 0 deletions apps/builddao/widget/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ const Root = styled.div`
/* Typeahead Fix */
.rbt-token-removeable {
background: #007bff;
color: #fff;
}
`;

Expand Down
Loading

0 comments on commit f2b8dba

Please sign in to comment.