Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(govern) chore: update text #110

Merged
merged 5 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed both as we don't use Boardroom anymore and have the proposals page in menu anyway

<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 a central hub for Olas DAO members and provides access to the DAO proposals.
Tanya-atatakai marked this conversation as resolved.
Show resolved Hide resolved
</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 the Autonolas DAO governance by voting on on-chain proposals./,
Tanya-atatakai marked this conversation as resolved.
Show resolved Hide resolved
);
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 the Autonolas DAO governance by voting on on-chain proposals.
Tanya-atatakai marked this conversation as resolved.
Show resolved Hide resolved
</Paragraph>

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