Skip to content

Commit

Permalink
Merge pull request #300 from DAOmasons/grantsPageFixes
Browse files Browse the repository at this point in the history
Grants page fixes
  • Loading branch information
jordanlesich authored Aug 12, 2024
2 parents 16c7918 + ce62ab3 commit 04abf50
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
5 changes: 0 additions & 5 deletions .graphclientrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ sources:
graphql:
endpoint: https://indexer.bigdevenergy.link/3a96753/v1/graphql
# endpoint: http://localhost:8080/v1/graphql
# - name: gs-voting
# handler:
# graphql:
# # endpoint: http://localhost:8080/v1/graphql
# endpoint: https://indexer.bigdevenergy.link/d18cda9/v1/graphql
documents:
# - './src/**/*.graphql'
- './src/graphql/newQueries/**/*.graphql'
3 changes: 1 addition & 2 deletions src/components/dashboard/facilitator/AllocationPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export const AllocationPanel = ({
}, [shipData, poolBalance]);

const handleAllocate = () => {
console.log('fired');
let shipIds = [];
let amounts = [];

Expand Down Expand Up @@ -92,7 +91,7 @@ export const AllocationPanel = ({
</Box>
);
}
console.log('render');

return (
<Box>
<Text mb="sm" fw={600}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/dashboard/facilitator/CompleteVotePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const CompleteVotePanel = () => {
const { contest, refetchGsVotes, votingStage } = useVoting();

const { tx } = useTx();
console.log('contest', contest);

const finalizeVoting = () => {
if (!contest || votingStage !== VotingStage.Closed) {
notifications.show({
Expand Down
2 changes: 1 addition & 1 deletion src/components/grant/MilestoneDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const MilestoneDisplay = ({
<Text fz="sm" fw={700} mb={4}>
Description
</Text>
<Text fz="sm">
<Text fz="sm" className="ws-pre-wrap">
{currentMilestone?.milestoneContent.milestoneDetails}
</Text>
</Box>
Expand Down
6 changes: 5 additions & 1 deletion src/components/grant/MilestoneSetDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ export const MilestoneSetDisplay = ({ doc }: { doc: MilestonesDisplay }) => {
<Text size="sm" fw={700} mb={4}>
Description
</Text>
<Text size="sm" td={isOldOrRejected ? 'line-through' : undefined}>
<Text
size="sm"
td={isOldOrRejected ? 'line-through' : undefined}
className="ws-pre-wrap"
>
{milestone.milestoneContent.milestoneDetails}
</Text>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion src/components/grant/ProjectActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const ProjectActions = () => {
const isMilestonePlanning =
grant?.status &&
grant.status >= GrantStatus.ApplicationApproved &&
grant?.status <= GrantStatus.Allocated;
grant?.status < GrantStatus.MilestonesApproved;

const areMilestonesLocked =
grant?.status &&
Expand Down

0 comments on commit 04abf50

Please sign in to comment.