Skip to content

Commit

Permalink
Bug fixes (#258)
Browse files Browse the repository at this point in the history
* notification to Notification
* replaces gateway_url per environment
  • Loading branch information
elliotBraem authored Apr 28, 2024
1 parent 0ff805b commit f70070a
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 17 deletions.
3 changes: 2 additions & 1 deletion apps/builddao/aliases.mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"devs": "devs.near",
"mob": "mob.near",
"near": "near",
"socialdb": "social.near"
"socialdb": "social.near",
"gateway_url": "https://nearbuilders.org"
}
3 changes: 2 additions & 1 deletion apps/builddao/aliases.testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"devs": "neardevs.testnet",
"mob": "mike.testnet",
"near": "discom.testnet",
"socialdb": "v1.social08.testnet"
"socialdb": "v1.social08.testnet",
"gateway_url": "https://test.nearbuilders.org"
}
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 @@ -68,7 +68,7 @@ return (
<LoginContainer>
<p>Please login in order to post.</p>
<a
href={"https://nearbuilders.org/join"}
href={"${alias_gateway_url}/join"}
style={{ textDecoration: "none" }}
>
<Button variant="primary">Login</Button>
Expand Down
4 changes: 2 additions & 2 deletions apps/builddao/widget/Notification/Item/buildhub.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ return (
props={{
L: (
<Widget
src="${config_account}/widget/notification.Item.Left"
src="${config_account}/widget/Notification.Item.Left"
props={{ ...value }}
/>
),
R: (
<Widget
src="${config_account}/widget/notification.Item.Right"
src="${config_account}/widget/Notification.Item.Right"
props={{ ...value }}
/>
),
Expand Down
4 changes: 2 additions & 2 deletions apps/builddao/widget/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ function Navbar(props) {
<Button
variant="primary"
linkClassName="d-flex"
href="https://nearbuilders.org/join"
href="${alias_gateway_url}/join"
noLink={true}
className="w-100"
>
Expand Down Expand Up @@ -456,7 +456,7 @@ function Navbar(props) {
<Button
variant="primary"
linkClassName="d-flex"
href="https://nearbuilders.org/join"
href="${alias_gateway_url}/join"
noLink={true}
className="w-100"
onClick={() => setDropdown(false)}
Expand Down
2 changes: 1 addition & 1 deletion apps/builddao/widget/components/buttons/Connect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const Component = () => {
if (!context.accountId) {
return (
<Button
href={"https://nearbuilders.org/join"}
href={"${alias_gateway_url}/join"}
variant="primary"
noLink={true}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ return (
</TextareaWrapper>
</div>
<Widget
src="${config_account}/widget/notification.NotificationRolesSelector"
src="${config_account}/widget/Notification.NotificationRolesSelector"
props={{
daoId: selectedDAO,
onUpdate: (v) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ return (
</TextareaWrapper>
</div>
<Widget
src="${config_account}/widget/notification.NotificationRolesSelector"
src="${config_account}/widget/Notification.NotificationRolesSelector"
props={{
daoId: selectedDAO,
onUpdate: (v) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ return (
</TextareaWrapper>
</div>
<Widget
src="${config_account}/widget/notification.NotificationRolesSelector"
src="${config_account}/widget/Notification.NotificationRolesSelector"
props={{
daoId: selectedDAO,
onUpdate: (v) => {
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 @@ -171,7 +171,7 @@ return (
/>
</TextareaWrapper>
<Widget
src="${config_account}/widget/notification.NotificationRolesSelector"
src="${config_account}/widget/Notification.NotificationRolesSelector"
props={{
daoId: selectedDAO,
onUpdate: (v) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ return (
</TextareaWrapper>
</div>
<Widget
src="${config_account}/widget/notification.NotificationRolesSelector"
src="${config_account}/widget/Notification.NotificationRolesSelector"
props={{
daoId: selectedDAO,
onUpdate: (v) => {
Expand Down
2 changes: 1 addition & 1 deletion apps/builddao/widget/config/feed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function formatDate(date) {
}

const daoName = "Build DAO";
const feedLink = "https://nearbuilders.org/feed";
const feedLink = "${alias_gateway_url}/feed";

return {
type: "app", // every.near/type/app
Expand Down
2 changes: 1 addition & 1 deletion apps/builddao/widget/home/Hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ const Hero = (props) => {
{currentGateway && !signedIn ? (
<>
<a
href={"https://nearbuilders.org/join?from=trial"}
href={"${alias_gateway_url}/join?from=trial"}
style={{ textDecoration: "none" }}
>
<Button style={{ background: "#4A21A5", color: "white" }}>
Expand Down
2 changes: 1 addition & 1 deletion apps/builddao/widget/page/feed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function formatDate(date) {
}

const daoName = "Build DAO";
const feedLink = "https://nearbuilders.org/feed";
const feedLink = "${alias_gateway_url}/feed";

const config = {
theme: {},
Expand Down

0 comments on commit f70070a

Please sign in to comment.