Skip to content

Commit

Permalink
(chore) feat: Isolated deployments (#101)
Browse files Browse the repository at this point in the history
* (govern) feat: Add page title and description for contract page

* feat(libs): update ui-theme test-cases
  • Loading branch information
mohandast52 authored Sep 11, 2024
1 parent 8015752 commit 857f175
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 11 additions & 3 deletions apps/govern/components/Contract/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Alert, Card, Flex, Skeleton, Space, Typography } from 'antd';
import Head from 'next/head';
import { useRouter } from 'next/router';
import styled from 'styled-components';
import { StakingContract } from 'types';
Expand Down Expand Up @@ -129,8 +130,15 @@ export const ContractPage = () => {
}

return (
<StyledMain>
<ContractPageContent contract={contract} />
</StyledMain>
<>
<Head>
<title>Govern | {contract.metadata.name}</title>
<meta name="description" content={contract.metadata.description} />
</Head>

<StyledMain>
<ContractPageContent contract={contract} />
</StyledMain>
</>
);
};
6 changes: 3 additions & 3 deletions libs/ui-theme/src/lib/ui-theme.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import { render } from '@testing-library/react';
import React from 'react';

import { AutonolasThemeProvider } from './ThemeConfig';

describe('UiTheme', () => {
describe('<AutonolasThemeProvider />', () => {
it('should render successfully', () => {
const { baseElement } = render(<AutonolasThemeProvider />);
const { baseElement } = render(<AutonolasThemeProvider />);
expect(baseElement).toBeTruthy();
});
});

0 comments on commit 857f175

Please sign in to comment.