Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/builddao/data.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"buildhub.near": {}
"builddao.testnet": {}
}
2 changes: 1 addition & 1 deletion apps/builddao/widget/Feed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const LoginContainer = styled.div`
margin-bottom: 1rem;
`;

const { name: feedName, template, requiredHashtags, customActions } = props;
const { feedName, template, requiredHashtags, customActions } = props;

// for modals
const [item, setItem] = useState(null);
Expand Down
6 changes: 3 additions & 3 deletions apps/builddao/widget/Resources.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const postAccountId = props.postAccountId;
if (mdPath && !postAccountId) {
return (
<div>
<Header>{props.name}</Header>
<Header>{props.feedName}</Header>
<MarkdownView path={mdPath} />
</div>
);
Expand All @@ -25,7 +25,7 @@ if (mdPath && !postAccountId) {
if (!mdPath && postAccountId) {
return (
<div>
<Header>{props.name}</Header>
<Header>{props.feedName}</Header>

<Post
accountId={postAccountId}
Expand All @@ -38,7 +38,7 @@ if (!mdPath && postAccountId) {

return (
<div>
<Header>{props.name}</Header>
<Header>{props.feedName}</Header>
<p>No mdPath or post accountId configured</p>
</div>
);
9 changes: 4 additions & 5 deletions apps/builddao/widget/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const config = {
"--secondary-color": "white",
background: "var(--main-color)",
color: "var(--secondary-color)",
height: "100vh"
},
layout: {
src: "${alias_devs}/widget/Layout",
Expand All @@ -19,7 +18,7 @@ const config = {
// customize your header
<Widget
src="${config_account}/widget/components.Navbar"
props={{ routes: config.router.routes, ...passProps }}
props={{ routes: config.router.routes, ...passProps, page: props.page }}
/>
),
Footer: () => <></>, // customize your footer
Expand All @@ -43,10 +42,10 @@ const config = {
},
},
proposal: {
path: "${config_account}/widget/page.projects",
path: "${config_account}/widget/page.proposal",
blockHeight: "final",
init: {
name: "Projects",
name: "Proposals",
},
},
resources: {
Expand Down Expand Up @@ -80,7 +79,7 @@ const config = {
hide: true,
},
projects: {
path: "${config_account}/widget/page.project-feed",
path: "${config_account}/widget/page.projects",
blockHeight: "final",
init: {
name: "Project Feed",
Expand Down
275 changes: 0 additions & 275 deletions apps/builddao/widget/app.old.jsx

This file was deleted.

6 changes: 3 additions & 3 deletions apps/builddao/widget/app/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ if (!config) {

const Layout = VM.require(
config.layout?.src ?? "${alias_devs}/widget/Layout",
) || (() => <></>);
) || {
Layout: () => <></>,
};

// While something like Theme should be in the parent...
const CSS = styled.div`
Expand Down Expand Up @@ -85,8 +87,6 @@ const Content = styled.div`
`;

// const Template = config.Template ?? (({children}) => <>{children}</>);
console.log("view props", passProps);

return (
<CSS style={config.theme}>
<Container>
Expand Down
2 changes: 1 addition & 1 deletion apps/builddao/widget/components/modals/propose/Text.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ return (
proposalType: "Add Member",
}}
/>
{console.log(notificationsData)}
{/* {console.log(notificationsData)} */}
<div className="w-100 d-flex">
<Button
className="ms-auto"
Expand Down
Loading