Skip to content

Commit 3daaf65

Browse files
authored
Add due date to milestone table (#5170)
1 parent 8151543 commit 3daaf65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/rewards/blocks/views.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ export function getProposalRewardsView({
137137
view.fields.visiblePropertyIds = (board.fields.cardProperties as { id: string }[])
138138
.map((p) => p.id)
139139
.filter((id: string) => {
140-
if (rewardTypes.includes('custom') && id === REWARD_CUSTOM_VALUE) {
140+
if (rewardTypes.includes('custom') && (id === REWARD_CUSTOM_VALUE || id === DUE_DATE_ID)) {
141141
return true;
142-
} else if (rewardTypes.includes('token') && (id === REWARD_AMOUNT || id === REWARD_CHAIN)) {
142+
} else if (rewardTypes.includes('token') && (id === REWARD_AMOUNT || id === REWARD_CHAIN || id === DUE_DATE_ID)) {
143143
return true;
144144
} else {
145145
return !id.startsWith('__');
@@ -148,12 +148,12 @@ export function getProposalRewardsView({
148148

149149
view.fields.columnWidths = {
150150
...view.fields.columnWidths,
151-
[Constants.titleColumnId]: 300
151+
[Constants.titleColumnId]: 250
152152
};
153153
// set larger than normal width for all custom properties
154154
view.fields.visiblePropertyIds.forEach((id) => {
155155
if (!view.fields.columnWidths[id]) {
156-
view.fields.columnWidths[id] = 200;
156+
view.fields.columnWidths[id] = 150;
157157
}
158158
});
159159
return view;

0 commit comments

Comments
 (0)