-
)
-}
\ No newline at end of file
+}
diff --git a/src/components/Charts/MarketChartTheme.ts b/src/components/Charts/MarketChartTheme.ts
index 211141bad..02ac7f032 100644
--- a/src/components/Charts/MarketChartTheme.ts
+++ b/src/components/Charts/MarketChartTheme.ts
@@ -1,386 +1,350 @@
-const marketChartTheme = {
- "color": [
- "#ff715e",
- "#ffaf51",
- "#ffee51",
- "#8c6ac4",
- "#715c87"
- ],
- "backgroundColor": "transparent",
- "textStyle": {},
- "title": {
- "textStyle": {
- "color": "#ffaf51"
- },
- "subtextStyle": {
- "color": "#eeeeee"
- }
+const marketChartTheme = {
+ color: ["#ff715e", "#ffaf51", "#ffee51", "#8c6ac4", "#715c87"],
+ backgroundColor: "transparent",
+ textStyle: {},
+ title: {
+ textStyle: {
+ color: "#ffaf51",
+ },
+ subtextStyle: {
+ color: "#eeeeee",
+ },
},
- "line": {
- "itemStyle": {
- "borderWidth": "2"
+ line: {
+ itemStyle: {
+ borderWidth: "2",
},
- "lineStyle": {
- "width": "4"
+ lineStyle: {
+ width: "4",
},
- "smooth": false
+ smooth: false,
},
- "radar": {
- "itemStyle": {
- "borderWidth": "2"
+ radar: {
+ itemStyle: {
+ borderWidth: "2",
},
- "lineStyle": {
- "width": "3"
+ lineStyle: {
+ width: "3",
},
- "smooth": false
+ smooth: false,
},
- "bar": {
- "itemStyle": {
- "barBorderWidth": "0",
- "barBorderColor": "#ccc"
- }
+ bar: {
+ itemStyle: {
+ barBorderWidth: "0",
+ barBorderColor: "#ccc",
+ },
},
- "pie": {
- "itemStyle": {
- "borderWidth": "0",
- "borderColor": "#ccc"
+ pie: {
+ itemStyle: {
+ borderWidth: "0",
+ borderColor: "#ccc",
},
},
- "scatter": {
- "itemStyle": {
- "borderWidth": "0",
- "borderColor": "#ccc"
+ scatter: {
+ itemStyle: {
+ borderWidth: "0",
+ borderColor: "#ccc",
},
},
- "boxplot": {
- "itemStyle": {
- "borderWidth": "0",
- "borderColor": "#ccc"
+ boxplot: {
+ itemStyle: {
+ borderWidth: "0",
+ borderColor: "#ccc",
},
},
- "parallel": {
- "itemStyle": {
- "borderWidth": "0",
- "borderColor": "#ccc"
+ parallel: {
+ itemStyle: {
+ borderWidth: "0",
+ borderColor: "#ccc",
},
},
- "sankey": {
- "itemStyle": {
- "borderWidth": "0",
- "borderColor": "#ccc"
+ sankey: {
+ itemStyle: {
+ borderWidth: "0",
+ borderColor: "#ccc",
},
},
- "funnel": {
- "itemStyle": {
- "borderWidth": "0",
- "borderColor": "#ccc"
+ funnel: {
+ itemStyle: {
+ borderWidth: "0",
+ borderColor: "#ccc",
},
},
- "gauge": {
- "itemStyle": {
- "borderWidth": "0",
- "borderColor": "#ccc"
+ gauge: {
+ itemStyle: {
+ borderWidth: "0",
+ borderColor: "#ccc",
},
},
- "candlestick": {
- "itemStyle": {
- "color": "#ffee51",
- "color0": "#ffffff",
- "borderColor": "#ff715e",
- "borderColor0": "#797fba",
- "borderWidth": "1"
- }
+ candlestick: {
+ itemStyle: {
+ color: "#ffee51",
+ color0: "#ffffff",
+ borderColor: "#ff715e",
+ borderColor0: "#797fba",
+ borderWidth: "1",
+ },
},
- "graph": {
- "itemStyle": {
- "borderWidth": "0",
- "borderColor": "#ccc"
- },
- "lineStyle": {
- "width": "1",
- "color": "#888888"
- },
- "symbolSize": "8",
- "smooth": false,
- "color": [
- "#ff715e",
- "#ffaf51",
- "#ffee51",
- "#8c6ac4",
- "#715c87"
- ],
- "label": {
- "color": "#333333"
- }
+ graph: {
+ itemStyle: {
+ borderWidth: "0",
+ borderColor: "#ccc",
+ },
+ lineStyle: {
+ width: "1",
+ color: "#888888",
+ },
+ symbolSize: "8",
+ smooth: false,
+ color: ["#ff715e", "#ffaf51", "#ffee51", "#8c6ac4", "#715c87"],
+ label: {
+ color: "#333333",
+ },
},
- "map": {
- "itemStyle": {
- "areaColor": "#555555",
- "borderColor": "#999999",
- "borderWidth": 0.5
- },
- "label": {
- "color": "#ffffff"
- },
- "emphasis": {
- "itemStyle": {
- "areaColor": "rgba(255,175,81,0.5)",
- "borderColor": "#ffaf51",
- "borderWidth": 1
+ map: {
+ itemStyle: {
+ areaColor: "#555555",
+ borderColor: "#999999",
+ borderWidth: 0.5,
+ },
+ label: {
+ color: "#ffffff",
+ },
+ emphasis: {
+ itemStyle: {
+ areaColor: "rgba(255,175,81,0.5)",
+ borderColor: "#ffaf51",
+ borderWidth: 1,
+ },
+ label: {
+ color: "#ffee51",
},
- "label": {
- "color": "#ffee51"
- }
- }
+ },
},
- "geo": {
- "itemStyle": {
- "areaColor": "#555555",
- "borderColor": "#999999",
- "borderWidth": 0.5
- },
- "label": {
- "color": "#ffffff"
- },
- "emphasis": {
- "itemStyle": {
- "areaColor": "rgba(255,175,81,0.5)",
- "borderColor": "#ffaf51",
- "borderWidth": 1
+ geo: {
+ itemStyle: {
+ areaColor: "#555555",
+ borderColor: "#999999",
+ borderWidth: 0.5,
+ },
+ label: {
+ color: "#ffffff",
+ },
+ emphasis: {
+ itemStyle: {
+ areaColor: "rgba(255,175,81,0.5)",
+ borderColor: "#ffaf51",
+ borderWidth: 1,
+ },
+ label: {
+ color: "#ffee51",
},
- "label": {
- "color": "#ffee51"
- }
- }
+ },
},
- "categoryAxis": {
- "axisLine": {
- "show": true,
- "lineStyle": {
- "color": "#666666"
- }
- },
- "axisTick": {
- "show": false,
- "lineStyle": {
- "color": "#333"
- }
- },
- "axisLabel": {
- "show": true,
- "color": "#999999"
- },
- "splitLine": {
- "show": true,
- "lineStyle": {
- "color": [
- "#555555"
- ]
- }
- },
- "splitArea": {
- "show": false,
- "areaStyle": {
- "color": [
- "rgba(250,250,250,0.05)",
- "rgba(200,200,200,0.02)"
- ]
- }
- }
+ categoryAxis: {
+ axisLine: {
+ show: true,
+ lineStyle: {
+ color: "#666666",
+ },
+ },
+ axisTick: {
+ show: false,
+ lineStyle: {
+ color: "#333",
+ },
+ },
+ axisLabel: {
+ show: true,
+ color: "#999999",
+ },
+ splitLine: {
+ show: true,
+ lineStyle: {
+ color: ["#555555"],
+ },
+ },
+ splitArea: {
+ show: false,
+ areaStyle: {
+ color: ["rgba(250,250,250,0.05)", "rgba(200,200,200,0.02)"],
+ },
+ },
},
- "valueAxis": {
- "axisLine": {
- "show": true,
- "lineStyle": {
- "color": "#666666"
- }
- },
- "axisTick": {
- "show": false,
- "lineStyle": {
- "color": "#333"
- }
- },
- "axisLabel": {
- "show": true,
- "color": "#999999"
- },
- "splitLine": {
- "show": true,
- "lineStyle": {
- "color": [
- "#555555"
- ]
- }
- },
- "splitArea": {
- "show": false,
- "areaStyle": {
- "color": [
- "rgba(250,250,250,0.05)",
- "rgba(200,200,200,0.02)"
- ]
- }
- }
+ valueAxis: {
+ axisLine: {
+ show: true,
+ lineStyle: {
+ color: "#666666",
+ },
+ },
+ axisTick: {
+ show: false,
+ lineStyle: {
+ color: "#333",
+ },
+ },
+ axisLabel: {
+ show: true,
+ color: "#999999",
+ },
+ splitLine: {
+ show: true,
+ lineStyle: {
+ color: ["#555555"],
+ },
+ },
+ splitArea: {
+ show: false,
+ areaStyle: {
+ color: ["rgba(250,250,250,0.05)", "rgba(200,200,200,0.02)"],
+ },
+ },
},
- "logAxis": {
- "axisLine": {
- "show": true,
- "lineStyle": {
- "color": "#666666"
- }
- },
- "axisTick": {
- "show": false,
- "lineStyle": {
- "color": "#333"
- }
- },
- "axisLabel": {
- "show": true,
- "color": "#999999"
- },
- "splitLine": {
- "show": true,
- "lineStyle": {
- "color": [
- "#555555"
- ]
- }
- },
- "splitArea": {
- "show": false,
- "areaStyle": {
- "color": [
- "rgba(250,250,250,0.05)",
- "rgba(200,200,200,0.02)"
- ]
- }
- }
+ logAxis: {
+ axisLine: {
+ show: true,
+ lineStyle: {
+ color: "#666666",
+ },
+ },
+ axisTick: {
+ show: false,
+ lineStyle: {
+ color: "#333",
+ },
+ },
+ axisLabel: {
+ show: true,
+ color: "#999999",
+ },
+ splitLine: {
+ show: true,
+ lineStyle: {
+ color: ["#555555"],
+ },
+ },
+ splitArea: {
+ show: false,
+ areaStyle: {
+ color: ["rgba(250,250,250,0.05)", "rgba(200,200,200,0.02)"],
+ },
+ },
},
- "timeAxis": {
- "axisLine": {
- "show": true,
- "lineStyle": {
- "color": "#666666"
- }
- },
- "axisTick": {
- "show": false,
- "lineStyle": {
- "color": "#333"
- }
- },
- "axisLabel": {
- "show": true,
- "color": "#999999"
- },
- "splitLine": {
- "show": true,
- "lineStyle": {
- "color": [
- "#555555"
- ]
- }
- },
- "splitArea": {
- "show": false,
- "areaStyle": {
- "color": [
- "rgba(250,250,250,0.05)",
- "rgba(200,200,200,0.02)"
- ]
- }
- }
+ timeAxis: {
+ axisLine: {
+ show: true,
+ lineStyle: {
+ color: "#666666",
+ },
+ },
+ axisTick: {
+ show: false,
+ lineStyle: {
+ color: "#333",
+ },
+ },
+ axisLabel: {
+ show: true,
+ color: "#999999",
+ },
+ splitLine: {
+ show: true,
+ lineStyle: {
+ color: ["#555555"],
+ },
+ },
+ splitArea: {
+ show: false,
+ areaStyle: {
+ color: ["rgba(250,250,250,0.05)", "rgba(200,200,200,0.02)"],
+ },
+ },
},
- "toolbox": {
- "iconStyle": {
- "borderColor": "#999999"
- },
- "emphasis": {
- "iconStyle": {
- "borderColor": "#666666"
- }
- }
+ toolbox: {
+ iconStyle: {
+ borderColor: "#999999",
+ },
+ emphasis: {
+ iconStyle: {
+ borderColor: "#666666",
+ },
+ },
},
- "legend": {
- "textStyle": {
- "color": "#999999"
- }
+ legend: {
+ textStyle: {
+ color: "#999999",
+ },
},
- "tooltip": {
- "axisPointer": {
- "lineStyle": {
- "color": "#cccccc",
- "width": 1
+ tooltip: {
+ axisPointer: {
+ lineStyle: {
+ color: "#cccccc",
+ width: 1,
},
- "crossStyle": {
- "color": "#cccccc",
- "width": 1
- }
- }
+ crossStyle: {
+ color: "#cccccc",
+ width: 1,
+ },
+ },
},
- "timeline": {
- "lineStyle": {
- "color": "#ffaf51",
- "width": 1
- },
- "itemStyle": {
- "color": "#ffaf51",
- "borderWidth": 1
- },
- "controlStyle": {
- "color": "#ffaf51",
- "borderColor": "#ffaf51",
- "borderWidth": 0.5
- },
- "checkpointStyle": {
- "color": "#ff715e",
- "borderColor": "#ff715e"
- },
- "label": {
- "color": "#ff715e"
- },
- "emphasis": {
- "itemStyle": {
- "color": "#ffaf51"
+ timeline: {
+ lineStyle: {
+ color: "#ffaf51",
+ width: 1,
+ },
+ itemStyle: {
+ color: "#ffaf51",
+ borderWidth: 1,
+ },
+ controlStyle: {
+ color: "#ffaf51",
+ borderColor: "#ffaf51",
+ borderWidth: 0.5,
+ },
+ checkpointStyle: {
+ color: "#ff715e",
+ borderColor: "#ff715e",
+ },
+ label: {
+ color: "#ff715e",
+ },
+ emphasis: {
+ itemStyle: {
+ color: "#ffaf51",
},
- "controlStyle": {
- "color": "#ffaf51",
- "borderColor": "#ffaf51",
- "borderWidth": 0.5
+ controlStyle: {
+ color: "#ffaf51",
+ borderColor: "#ffaf51",
+ borderWidth: 0.5,
},
- "label": {
- "color": "#ff715e"
- }
- }
+ label: {
+ color: "#ff715e",
+ },
+ },
},
- "visualMap": {
- "color": [
- "#ff715e",
- "#ffee51",
- "#797fba"
- ]
+ visualMap: {
+ color: ["#ff715e", "#ffee51", "#797fba"],
+ },
+ dataZoom: {
+ backgroundColor: "rgba(255,255,255,0)",
+ dataBackgroundColor: "rgba(222,222,222,1)",
+ fillerColor: "rgba(255,113,94,0.2)",
+ handleColor: "#cccccc",
+ handleSize: "100%",
+ textStyle: {
+ color: "#999999",
+ },
},
- "dataZoom": {
- "backgroundColor": "rgba(255,255,255,0)",
- "dataBackgroundColor": "rgba(222,222,222,1)",
- "fillerColor": "rgba(255,113,94,0.2)",
- "handleColor": "#cccccc",
- "handleSize": "100%",
- "textStyle": {
- "color": "#999999"
- }
+ markPoint: {
+ label: {
+ color: "#333333",
+ },
+ emphasis: {
+ label: {
+ color: "#333333",
+ },
+ },
},
- "markPoint": {
- "label": {
- "color": "#333333"
- },
- "emphasis": {
- "label": {
- "color": "#333333"
- }
- }
- }
}
-export default marketChartTheme;
+export default marketChartTheme
diff --git a/src/components/Collaborations/CollaborationCard.tsx b/src/components/Collaborations/CollaborationCard.tsx
index 346f584d1..0bb698a3e 100644
--- a/src/components/Collaborations/CollaborationCard.tsx
+++ b/src/components/Collaborations/CollaborationCard.tsx
@@ -12,14 +12,11 @@ interface Props {
user: User
collaboration: Collaboration
}
-export function CollaborationCard({
- user,
- collaboration,
-}: Props) {
+export function CollaborationCard({ user, collaboration }: Props) {
// we put the artist viewving as first of the list
const sortedCollaborators = useMemo
(() => {
- return [...collaboration.collaborators].sort(
- (a, b) => a.id === user.id ? -1 : 1
+ return [...collaboration.collaborators].sort((a, b) =>
+ a.id === user.id ? -1 : 1
)
}, [user.id, collaboration.collaborators])
@@ -28,21 +25,17 @@ export function CollaborationCard({
return (
- {sortedCollaborators.map(user => (
-
+ {sortedCollaborators.map((user) => (
+
))}
-
+
@@ -55,10 +48,8 @@ export function CollaborationCard({
Projects:
{genToks && genToks.length > 0 ? (
-
- {genToks.map(g => g.name).join(", ")}
-
- ):(
+ {genToks.map((g) => g.name).join(", ")}
+ ) : (
"/"
)}
diff --git a/src/components/Collaborations/Proposal/Actions/ActionExecute.tsx b/src/components/Collaborations/Proposal/Actions/ActionExecute.tsx
index 0268da61f..28f2e6499 100644
--- a/src/components/Collaborations/Proposal/Actions/ActionExecute.tsx
+++ b/src/components/Collaborations/Proposal/Actions/ActionExecute.tsx
@@ -14,10 +14,7 @@ interface Props {
proposal: CollaborationProposal
collaboration: Collaboration
}
-export function ProposalActionExecute({
- proposal,
- collaboration,
-}: Props) {
+export function ProposalActionExecute({ proposal, collaboration }: Props) {
const { call, state, success, error, loading } = useContractOperation(
CollabExecuteProposalOperation
)
@@ -37,26 +34,29 @@ export function ProposalActionExecute({
{canBeExecuted ? (
- Since all the collaborators have approved the operation, any collaborator can execute it in the name of the group.
+ Since all the collaborators have approved the operation, any
+ collaborator can execute it in the name of the group.
- ):(
+ ) : (
"When all the collaborators have approved the operation, it can be executed by any collaborator in the name of the whole group."
)}
}
+ iconComp={
}
disabled={!canBeExecuted}
state={loading ? "loading" : "default"}
- onClick={() => call({
- proposal,
- collaboration,
- })}
+ onClick={() =>
+ call({
+ proposal,
+ collaboration,
+ })
+ }
>
execute operation
)
-}
\ No newline at end of file
+}
diff --git a/src/components/Collaborations/Proposal/Actions/ActionVote.tsx b/src/components/Collaborations/Proposal/Actions/ActionVote.tsx
index 01e1b5198..bc3cfe132 100644
--- a/src/components/Collaborations/Proposal/Actions/ActionVote.tsx
+++ b/src/components/Collaborations/Proposal/Actions/ActionVote.tsx
@@ -38,26 +38,28 @@ export function ProposalActionVote({
loading={loading}
noSpacing
/>
-
+
- {collaboration.collaborators.map(user => (
+ {collaboration.collaborators.map((user) => (
u.id === user.id
- )!}
+ user={collaboration.collaborators.find((u) => u.id === user.id)!}
size="small"
/>
{proposal.approvals[user.id] === true ? (
-
+
approved
- ):proposal.approvals[user.id] === false ? (
+ ) : proposal.approvals[user.id] === false ? (
-
+
rejected
- ):(
+ ) : (
-
+
no vote yet
)}
@@ -46,4 +41,4 @@ export function Approvals({
))}
)
-}
\ No newline at end of file
+}
diff --git a/src/components/Collaborations/Proposal/Details/Burn.tsx b/src/components/Collaborations/Proposal/Details/Burn.tsx
index 7ccce728c..09dfd2e14 100644
--- a/src/components/Collaborations/Proposal/Details/Burn.tsx
+++ b/src/components/Collaborations/Proposal/Details/Burn.tsx
@@ -12,15 +12,13 @@ import { LoaderBlock } from "../../../Layout/LoaderBlock"
import { GenerativeToken } from "../../../../types/entities/GenerativeToken"
import { LinkIcon } from "../../../Link/LinkIcon"
import { getGenerativeTokenUrl } from "../../../../utils/generative-token"
-import { EBuildableParams, unpackBytes } from "../../../../services/parameters-builder/BuildParameters"
+import {
+ EBuildableParams,
+ unpackBytes,
+} from "../../../../services/parameters-builder/BuildParameters"
-
-export function ProposalDetailsBurnHeader({
- proposal,
-}: ProposalDetailsProps) {
- return (
-