Skip to content

Commit

Permalink
Merge branch 'dev' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
roienatan committed Jan 20, 2021
2 parents b04a432 + cc1e380 commit 9b80f83
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 501 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

- Bugs Fixed
- Bug where a scheme can be undefined due to an unknown issue
- Updated DAO creator:
- Can't create DAO in xDai
- New DAO URL is now lowercase

## 1.0.4
- Features Added
Expand Down
565 changes: 78 additions & 487 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"3box": "1.20.2",
"@burner-wallet/burner-connect-provider": "^0.1.1",
"@daostack/arc.js": "0.2.82",
"@dorgtech/daocreator-ui": "1.0.21",
"@dorgtech/daocreator-ui": "1.0.22",
"@fortawesome/fontawesome-svg-core": "^1.2.10",
"@fortawesome/free-brands-svg-icons": "^5.6.1",
"@fortawesome/react-fontawesome": "^0.1.3",
Expand Down
9 changes: 0 additions & 9 deletions src/components/DaoCreator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import * as React from "react";
import { connect } from "react-redux";
import { Prompt } from "react-router-dom";
import { showNotification } from "@store/notifications/notifications.reducer";
import { enableWalletProvider, getWeb3Provider } from "arc";
import { getNetworkName } from "lib/util";

const DAOcreator = React.lazy(() => import("@dorgtech/daocreator-ui"));

Expand Down Expand Up @@ -41,13 +39,6 @@ class DaoCreator extends React.Component<IProps> {
message={"Are you sure you want to leave?"}
/>
<DAOcreator
setWeb3Provider={async (): Promise<any> => {
if (!await enableWalletProvider({ showNotification: this.props.showNotification }, await getNetworkName())) {
return undefined;
}

return await getWeb3Provider();
}}
noDAOstackLogo
redirectURL={process.env.BASE_URL}
networks={process.env.NETWORKS.replace("main", "mainnet")}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Proposal/Create/SchemeForms/Validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const requireValue = (value: any): string => {
*/
export const validateParamValue = (type: string, value: string): undefined | string => {
if (isAddressType(type)) {
if (!isAddress(value)) {
if (!isAddress(value, true)) {
return "Must be a valid address";
}
}
Expand Down
1 change: 1 addition & 0 deletions src/components/Proposal/ProposalDetails.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ button.disabled {
flex-grow: 2;
padding-right: 25px;
position: relative;
max-width: 1000px;

.actionButtonContainer {
display: inline-block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const DecodedData = (props: IDecodedDataProps) => {
<div>
{lodaing ? <div className={css.loadingMethodInfo}><div className={css.loader} /><i>Loading method info...</i></div> :
<React.Fragment>
<div>Method: <pre>{parseMethodSignature(decodedData)}</pre></div>
<div>Method: <pre style={{ whiteSpace: "break-spaces" }}>{parseMethodSignature(decodedData)}</pre></div>
{methodParams}
</React.Fragment>}
</div>
Expand Down
5 changes: 3 additions & 2 deletions src/components/Proposal/Staking/StakeButtons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,10 @@

.enablePredictions {
button {
width: 120px;
white-space: nowrap;
width: fit-content;
height: auto;
padding-left: 10px;
padding-right: 10px;
}
}
}
Expand Down

0 comments on commit 9b80f83

Please sign in to comment.