Skip to content

Commit

Permalink
prettier fixes
Browse files Browse the repository at this point in the history
code refactoring
  • Loading branch information
rubycop committed Oct 31, 2024
1 parent c0fc40d commit 571d903
Show file tree
Hide file tree
Showing 15 changed files with 96 additions and 826 deletions.
9 changes: 2 additions & 7 deletions instances/treasury-factory.near/aliases.mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@
"REPL_DEVHUB": "devhub.near",
"REPL_DEVHUB_CONTRACT": "devhub.near",
"REPL_BASE_DEPLOYMENT_ACCOUNT": "treasury-factory.near",
"REPL_DEVDAO_ACCOUNT": "treasury-devdao.near",
"REPL_INSTANCE": "treasury-factory.near",
"REPL_TREASURY": "devdao.sputnik-dao.near",
"REPL_NEAR": "near",
"REPL_MOB": "mob.near",
"REPL_SOCIAL_CONTRACT": "social.near",
"REPL_RPC_URL": "https://rpc.mainnet.near.org",
"REPL_PROPOSAL_FEED_INDEXER_QUERY_NAME": "polyprogrammist_near_devhub_prod_v1_proposals_with_latest_snapshot",
"REPL_X_HASURA_ROLE": "polyprogrammist_near",
"REPL_NEAR_TOKEN_ICON": "https://ipfs.near.social/ipfs/bafkreifnyxk6cssapw7j5vc6zuzwl7vt6o5ddspoo5lcmbvtdrcmfozqyu",
"REPL_PIKESPEAK_KEY": "36f2b87a-7ee6-40d8-80b9-5e68e587a5b5",
"REPL_STAKE_ICON": "https://ipfs.near.social/ipfs/bafkreicjylnnugawkpvhtwjqegc2y6rhdmaqrzdo3cixr2epj5wlxz6ts4",
"REPL_UNSTAKE_ICON": "https://ipfs.near.social/ipfs/bafkreiepl6mvtyvd4hxiy3s4jpij4ep6e5fea324bvbujitmjup63iexea"
"REPL_RPC_URL": "https://rpc.mainnet.near.org"
}
15 changes: 5 additions & 10 deletions instances/treasury-factory.near/widget/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,17 @@ const { page, ...passProps } = props;
const { AppLayout } = VM.require(
"${REPL_BASE_DEPLOYMENT_ACCOUNT}/widget/components.templates.AppLayout"
) || { AppLayout: () => <></> };

const instance = "${REPL_INSTANCE}";

const { Theme } = VM.require(`${instance}/widget/config.css`) || {
const { Theme } = VM.require(
`${REPL_BASE_DEPLOYMENT_ACCOUNT}/widget/config.css`
) || {
Theme: () => <></>,
};

const propsToSend = { ...passProps, instance: instance };
const propsToSend = { ...passProps };

return (
<Theme>
<AppLayout
page={"create-treasury"}
instance={instance}
skipHeader
>
<AppLayout>
<Widget
src="${REPL_BASE_DEPLOYMENT_ACCOUNT}/widget/pages.treasury.Create"
props={propsToSend}
Expand Down
162 changes: 0 additions & 162 deletions instances/treasury-factory.near/widget/components/Navbar.jsx

This file was deleted.

65 changes: 0 additions & 65 deletions instances/treasury-factory.near/widget/components/OffCanvas.jsx

This file was deleted.

Loading

0 comments on commit 571d903

Please sign in to comment.