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
27 changes: 14 additions & 13 deletions apps/builddao/widget/OnboardingFlow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { Modal, Button, ProgressState } = VM.require(
) || {
Modal: () => <></>,
Button: () => <></>,
ProgressState: () => <></>
ProgressState: () => <></>,
};

const DaoSDK = VM.require("sdks.near/widget/SDKs.Sputnik.DaoSDK");
Expand All @@ -19,7 +19,7 @@ const sdk = DaoSDK(daoID);
const groupMembers = sdk.getMembersByGroupId({ groupId: "community" }) ?? [];

const StorageKey = {
userCompletedOnboarding: "userCompletedOnboarding"
userCompletedOnboarding: "userCompletedOnboarding",
};

function onFollow(accountId) {
Expand All @@ -30,20 +30,20 @@ function onFollow(accountId) {
key: "follow",
value: {
type,
accountId: accountId
}
accountId: accountId,
},
}),
notify: JSON.stringify({
key: accountId,
value: {
type
}
})
}
type,
},
}),
},
};

Social.set(data, {
force: true
force: true,
});
}

Expand All @@ -60,7 +60,7 @@ function OnboardingFlow() {
`${context.accountId}/graph/follow/${daoID}`,
undefined,
{
values_only: true
values_only: true,
}
);
const userAlreadyFollowDao =
Expand Down Expand Up @@ -125,7 +125,7 @@ function OnboardingFlow() {
`${context.accountId}/graph/follow/${account}`,
undefined,
{
values_only: true
values_only: true,
}
);
if (accountfollowEdge && Object.keys(accountfollowEdge).length > 0) {
Expand Down Expand Up @@ -213,7 +213,7 @@ function OnboardingFlow() {
props={{
template: PostTemplate,
requiredHashtags: requiredHashtags,
postBtnText: "Create Your First Post"
postBtnText: "Create Your First Post",
}}
/>
</div>
Expand Down Expand Up @@ -248,9 +248,10 @@ function OnboardingFlow() {
<img
src="https://ipfs.near.social/ipfs/bafkreihbwho3qfvnu4yss3eh5jrx6uxhrlzdgtdjyzyjrpa6odro6wdxya"
width={120}
alt="Build DAO Logo"
/>
</div>
<div style={{ width: "500px" }}>
<div style={{ width: "100%", maxWidth: "500px" }}>
<StepsComponent />
</div>
<Button
Expand Down
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 @@ -109,6 +109,7 @@ const AppHeader = ({ page, routes, ...props }) => (
<img
style={{ width: 85, objectFit: "cover" }}
src="https://ipfs.near.social/ipfs/bafkreihbwho3qfvnu4yss3eh5jrx6uxhrlzdgtdjyzyjrpa6odro6wdxya"
alt="Build DAO Logo"
/>
</Link>
<ButtonGroup style={{ flex: 1 }}>
Expand Down Expand Up @@ -145,6 +146,7 @@ const AppHeader = ({ page, routes, ...props }) => (
<img
style={{ width: 85, objectFit: "cover" }}
src="https://ipfs.near.social/ipfs/bafkreihbwho3qfvnu4yss3eh5jrx6uxhrlzdgtdjyzyjrpa6odro6wdxya"
alt="Build DAO Logo"
/>
</Link>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const uploadFile = (files) => {
return (
<>
{img ? (
<img src={`https://ipfs.near.social/ipfs/${img}`} />
<img src={`https://ipfs.near.social/ipfs/${img}`} alt="Image Preview"/>
) : (
<Widget
src="mob.near/widget/Image"
Expand Down
2 changes: 1 addition & 1 deletion apps/builddao/widget/home/goals.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const GridItem = ({ tag, title, description, image, isFirst }) => {
return (
<Card>
<div className="image">
<img src={image} />
<img src={image} alt="Item Image" />
</div>
<div className="content">
<span className="tag">{tag}</span>
Expand Down
10 changes: 8 additions & 2 deletions apps/builddao/widget/login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,19 @@ const LoginView = () => {
return (
<LoginContainer>
<div className="card">
<img src="https://ipfs.near.social/ipfs/bafkreihbwho3qfvnu4yss3eh5jrx6uxhrlzdgtdjyzyjrpa6odro6wdxya" />
<img
src="https://ipfs.near.social/ipfs/bafkreihbwho3qfvnu4yss3eh5jrx6uxhrlzdgtdjyzyjrpa6odro6wdxya"
alt="Build DAO Logo"
/>
<h1>
Designed to connect and empower builders in a multi-chain ecosystem
</h1>
<button onClick={props.requestSignIn}>Login</button>
</div>
<img src="https://ipfs.near.social/ipfs/bafybeibqnkvafyflci4iap73prugmjw4wlwmrazbiudvnsyr34yzmk75i4" />
<img
src="https://ipfs.near.social/ipfs/bafybeibqnkvafyflci4iap73prugmjw4wlwmrazbiudvnsyr34yzmk75i4"
alt="Preview of Profiles"
/>
</LoginContainer>
);
};
Expand Down