Skip to content

Commit

Permalink
Merge pull request #110 from valory-xyz/tanya/proposals-text-update
Browse files Browse the repository at this point in the history
(govern) chore: update text
  • Loading branch information
Tanya-atatakai authored Oct 2, 2024
2 parents f50dc1d + a4f8065 commit d6345d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
5 changes: 2 additions & 3 deletions apps/govern/components/Docs/Docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const WhatIsOlasGovern = () => (
It allows to direct OLAS token emissions to desirable staking programs via a voting-weight
mechanism.
</li>
<li>It provides access to Olas DAO proposals on Boardroom and Snapshot.</li>
<li>It provides access to Olas DAO proposals.</li>
</ul>
</>
);
Expand Down Expand Up @@ -197,8 +197,7 @@ const Proposals = () => (
Olas DAO proposals
</Title>
<Paragraph className="mb-8">
Olas Govern is a central hub for Olas DAO members and provides access to the DAO proposals on
Boardroom and Snapshot.
Olas Govern is the central hub for Olas DAO members and provides access to DAO proposals.
</Paragraph>
</>
);
Expand Down
6 changes: 3 additions & 3 deletions apps/govern/components/Proposals/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import { render, screen } from '@testing-library/react';
import { ProposalsPage } from './index';

jest.mock('./ProposalsList', () => ({
ProposalsList: () => <div>Proposals List</div>
ProposalsList: () => <div>Proposals List</div>,
}));

describe('<Proposals />', () => {
it('should display the page title and description', () => {
render(<ProposalsPage />);
const pageTitle = screen.getByText('Proposals');
const pageTitle = screen.getByText('On-chain proposals');
expect(pageTitle).toBeInTheDocument();

const pageDesc = screen.getByText(
/Participate in the Autonolas DAO governance by voting on proposals./,
/Participate in Autonolas DAO governance by voting on on-chain proposals./,
);
expect(pageDesc).toBeInTheDocument();
});
Expand Down
6 changes: 2 additions & 4 deletions apps/govern/components/Proposals/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,11 @@ const SnapshotCard = () => (
export const ProposalsPage = () => (
<StyledMain>
<SnapshotCard />

<Card>
<Title>Proposals</Title>
<Title>On-chain proposals</Title>
<Paragraph type="secondary" className="mb-24">
Participate in the Autonolas DAO governance by voting on proposals.
Participate in Autonolas DAO governance by voting on on-chain proposals.
</Paragraph>

<ProposalsList />
</Card>
</StyledMain>
Expand Down

0 comments on commit d6345d5

Please sign in to comment.