Skip to content

Commit 0d9d072

Browse files
authored
Merge pull request #587 from dOrgTech/develop
Merge Develop to Master
2 parents 7383848 + cc3544b commit 0d9d072

38 files changed

+17505
-20369
lines changed

package-lock.json

Lines changed: 13989 additions & 17566 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/img/chart-icon.svg

Lines changed: 3 additions & 0 deletions
Loading

src/assets/img/cycle-icon.svg

Lines changed: 3 additions & 0 deletions
Loading

src/assets/img/list-icon.svg

Lines changed: 3 additions & 0 deletions
Loading

src/assets/img/tezos-icon.svg

Lines changed: 3 additions & 0 deletions
Loading

src/modules/creator/deployment/steps/Config.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ const CustomFormikTextField = withStyles({
6161
"& .MuiInput-underline:after": {
6262
borderBottom: "none !important"
6363
}
64-
}
64+
},
65+
disabled: {}
6566
})(FormikTextField)
6667

6768
const CustomInputContainer = styled(Grid)(({ theme }) => ({

src/modules/creator/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export const DAOCreate: React.FC = () => {
122122

123123
const { back, next } = creator.state
124124
const step = useStepNumber()
125-
const progress = useMemo(() => step * 33, [step])
125+
const progress = useMemo(() => step * 20, [step])
126126
const history = useHistory()
127127
const theme = useTheme()
128128
const isMobile = useMediaQuery(theme.breakpoints.down("sm"))
@@ -154,7 +154,7 @@ export const DAOCreate: React.FC = () => {
154154
trackStrokeColor={"rgba(255, 255, 255, 0.2)"}
155155
>
156156
<Box className="indicator">
157-
<IndicatorValue>{progress === 0.5 ? 0 : step * 33}%</IndicatorValue>
157+
<IndicatorValue>{progress === 0.5 ? 0 : step * 20}%</IndicatorValue>
158158
</Box>
159159
</ProgressBar>
160160
<Box>

src/modules/explorer/components/AllProposalsList.tsx

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
import { Collapse, Grid, IconButton, styled, Typography } from "@material-ui/core"
1+
import { Collapse, Grid, styled, Theme, Typography } from "@material-ui/core"
22
import { ProposalItem } from "modules/explorer/pages/User"
3-
import React, { useCallback, useEffect, useMemo, useState } from "react"
3+
import React, { useCallback, useEffect, useState } from "react"
44
import { Link } from "react-router-dom"
55
import { Proposal, ProposalStatus } from "services/services/dao/mappers/proposal/types"
66
import { ContentContainer } from "./ContentContainer"
7-
import { Dropdown } from "./Dropdown"
7+
import { ProposalFilter } from "./ProposalsFilter"
88

99
const TableContainer = styled(ContentContainer)({
1010
width: "100%"
1111
})
1212

13-
const TableHeader = styled(Grid)({
13+
const TableHeader = styled(Grid)(({ theme }: { theme: Theme }) => ({
1414
padding: "16px 46px",
15-
minHeight: 34
16-
})
15+
minHeight: 34,
16+
[theme.breakpoints.down("sm")]: {
17+
gap: 10
18+
}
19+
}))
1720

1821
const ProposalsFooter = styled(Grid)({
1922
padding: "16px 46px",
@@ -31,13 +34,13 @@ interface Props {
3134

3235
export const AllProposalsList: React.FC<Props> = ({ currentLevel, proposals, title, showFooter, rightItem }) => {
3336
const [filteredProposal, setFilteredProposals] = useState(proposals)
34-
const [filter, setFilter] = useState("All")
37+
const [filter, setFilter] = useState("all")
3538

3639
const filterProposals = useCallback(
3740
(status?: any) => {
38-
if (status === "All") {
41+
if (status === "all") {
3942
return setFilteredProposals(proposals)
40-
} else if (status !== "All" && status !== undefined) {
43+
} else if (status !== "all" && status !== undefined) {
4144
const filtered = proposals.filter(proposal => proposal["cachedStatus"]?.status === status)
4245
setFilteredProposals(filtered)
4346
} else {
@@ -65,32 +68,11 @@ export const AllProposalsList: React.FC<Props> = ({ currentLevel, proposals, tit
6568
<Grid container direction="column" wrap={"nowrap"}>
6669
<TableHeader item container justifyContent="space-between" alignItems="center">
6770
<Grid item>
68-
<Typography variant="body2" style={{ fontWeight: "500" }} color="textPrimary">
71+
<Typography variant="body1" style={{ fontWeight: "500" }} color="textPrimary">
6972
{title}
7073
</Typography>
7174
</Grid>
72-
{proposals.length ? (
73-
<Grid item>
74-
<IconButton aria-label="expand row" size="small">
75-
<Dropdown
76-
options={[
77-
{ name: "All", value: "All" },
78-
{ name: ProposalStatus.ACTIVE, value: ProposalStatus.ACTIVE },
79-
{ name: ProposalStatus.DROPPED, value: ProposalStatus.DROPPED },
80-
{ name: ProposalStatus.EXECUTABLE, value: ProposalStatus.EXECUTABLE },
81-
{ name: ProposalStatus.EXECUTED, value: ProposalStatus.EXECUTED },
82-
{ name: ProposalStatus.EXPIRED, value: ProposalStatus.EXPIRED },
83-
{ name: ProposalStatus.NO_QUORUM, value: ProposalStatus.NO_QUORUM },
84-
{ name: ProposalStatus.PASSED, value: ProposalStatus.PASSED },
85-
{ name: ProposalStatus.PENDING, value: ProposalStatus.PENDING },
86-
{ name: ProposalStatus.REJECTED, value: ProposalStatus.REJECTED }
87-
]}
88-
value={"All"}
89-
onSelected={filterProposalByStatus}
90-
/>{" "}
91-
</IconButton>
92-
</Grid>
93-
) : null}
75+
{proposals.length ? <ProposalFilter filterProposalByStatus={filterProposalByStatus} /> : null}
9476
</TableHeader>
9577
{filteredProposal.length ? (
9678
<Grid

src/modules/explorer/components/CodeCollapse.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const CodeCollapse: React.FC<Props> = ({ code }) => {
5858
>
5959
<ProposalCodeEditorInput
6060
label=""
61-
containerStyle={{ marginTop: "8px" }}
61+
containerstyle={{ marginTop: "8px" }}
6262
insertSpaces
6363
ignoreTabKey={false}
6464
tabSize={4}

src/modules/explorer/components/ConfigProposalFormLambda.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const CheckIcon = styled(CheckOutlined)({
3939
fontSize: 169
4040
})
4141

42-
const codeEditorContainerStyles = {
42+
const codeEditorcontainerstyles = {
4343
marginTop: "8px"
4444
}
4545

@@ -87,7 +87,7 @@ enum LambdaProposalState {
8787
const codeEditorPlaceholder = {
8888
addLambda: `Write Michelson Code for Lambda's Implementation
8989
90-
Eg:-
90+
Eg:-
9191
9292
(Left (Left (Pair (Pair { DROP ;
9393
NIL operation ;
@@ -102,7 +102,7 @@ Eg:-
102102
`,
103103
lambdaExecuteArgumentsCode: `Write Michelson Code for the input Paramerers of your Lambda
104104
105-
Eg:-
105+
Eg:-
106106
107107
{
108108
"prim": "pair",
@@ -127,7 +127,7 @@ Eg:-
127127
`,
128128
lambdaExecuteParams: `Enter the values for the given params in a JSON/JavaScript Object format.
129129
130-
Eg:-
130+
Eg:-
131131
132132
{
133133
xtz_transfer_type: {
@@ -259,7 +259,7 @@ export const ProposalFormLambda: React.FC<Props> = ({ open, handleClose, action
259259
<>
260260
<ProposalCodeEditorInput
261261
label="Implementation"
262-
containerStyle={codeEditorContainerStyles}
262+
containerstyle={codeEditorcontainerstyles}
263263
insertSpaces
264264
ignoreTabKey={false}
265265
tabSize={4}
@@ -282,7 +282,7 @@ export const ProposalFormLambda: React.FC<Props> = ({ open, handleClose, action
282282
</ProposalFormInput>
283283
<ProposalCodeEditorInput
284284
label="Implementation"
285-
containerStyle={codeEditorContainerStyles}
285+
containerstyle={codeEditorcontainerstyles}
286286
insertSpaces
287287
ignoreTabKey={false}
288288
tabSize={4}
@@ -305,7 +305,7 @@ export const ProposalFormLambda: React.FC<Props> = ({ open, handleClose, action
305305
</ProposalFormInput>
306306
<ProposalCodeEditorInput
307307
label="Implementation"
308-
containerStyle={codeEditorContainerStyles}
308+
containerstyle={codeEditorcontainerstyles}
309309
insertSpaces
310310
ignoreTabKey={false}
311311
tabSize={4}
@@ -318,7 +318,7 @@ export const ProposalFormLambda: React.FC<Props> = ({ open, handleClose, action
318318
/>
319319
<ProposalCodeEditorInput
320320
label="Lambda Arguments Code"
321-
containerStyle={codeEditorContainerStyles}
321+
containerstyle={codeEditorcontainerstyles}
322322
insertSpaces
323323
ignoreTabKey={false}
324324
tabSize={4}
@@ -331,7 +331,7 @@ export const ProposalFormLambda: React.FC<Props> = ({ open, handleClose, action
331331
/>
332332
<ProposalCodeEditorInput
333333
label="Lambda Params"
334-
containerStyle={codeEditorContainerStyles}
334+
containerstyle={codeEditorcontainerstyles}
335335
insertSpaces
336336
ignoreTabKey={false}
337337
tabSize={4}
@@ -352,7 +352,7 @@ export const ProposalFormLambda: React.FC<Props> = ({ open, handleClose, action
352352
open={open}
353353
onClose={handleClose}
354354
title={ProposalAction[action] + " Lambda Proposal"}
355-
template="lambda"
355+
template="md"
356356
>
357357
{state === LambdaProposalState.write_action ? (
358358
<>

0 commit comments

Comments
 (0)