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

feat(chore): Isolated deployments #100

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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
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>
</>
);
};
1 change: 0 additions & 1 deletion apps/operate/components/Layout/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { MenuItemType } from 'antd/es/menu/hooks/useItems';
import { useRouter } from 'next/router';
import { FC, useEffect, useState } from 'react';


const items: MenuItemType[] = [
{ label: 'Live staking contracts', key: 'contracts' },
{ label: 'Agents', key: 'agents' },
Expand Down
6 changes: 3 additions & 3 deletions apps/operate/components/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { FC, ReactNode } from 'react';

import { Footer } from './Footer';
import { LogoSvg } from './Logos';
import { CustomLayout, Logo, OlasHeader } from './styles';
import { NavigationMenu } from './Menu';
import { CustomLayout, Logo, OlasHeader } from './styles';

const { Content } = AntdLayout;

interface LayoutProps {
type LayoutProps = {
children?: ReactNode;
}
};

export const Layout: FC<LayoutProps> = ({ children }) => {
return (
Expand Down
3 changes: 2 additions & 1 deletion libs/ui-theme/src/lib/GlobalStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export const GlobalStyles = createGlobalStyle`
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* uncomment for dark mode */
html {
/* uncomment for dark mode */
/* background-color: ${COLOR.WHITE}; */
/* filter: invert(0.85) hue-rotate(180deg); */
}
Expand Down Expand Up @@ -217,6 +217,7 @@ export const GlobalStyles = createGlobalStyle`
}
}

/* tooltip */
.ant-tooltip-content .ant-tooltip-inner {
padding: 12px;
}
Expand Down
7 changes: 4 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,12 @@
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();
});
});
Loading