Files
explore/ui/shared/layout/Layout.tsx
T
tom goriunovandGitHub fea128c0f5 Top bar and dimmed color theme (#1347)
* quick demo with slider

* change api host to eth

* add styles for color mode switch

* save selected hex in cookie

* style tweaks

* redesign and top bar

* mobile view of top bar

* top bat stats

* change api host for review env

* test and fix default color mode

* review fixes and refactoring

* update screenshots

* Remove "only" from extendedTest in
SearchResults.pw.tsx

* [skip ci] select first color when clicking on theme row

* Update color mode switch styles

* [skip ci] rollback review env values

* [skip ci] 💩💩💩 i need psychotherapy

* [skip ci] ":"

* fix footer layout
2023-12-12 11:41:32 +04:00

35 lines
900 B
TypeScript

import React from 'react';
import type { Props } from './types';
import AppErrorBoundary from 'ui/shared/AppError/AppErrorBoundary';
import HeaderAlert from 'ui/snippets/header/HeaderAlert';
import HeaderDesktop from 'ui/snippets/header/HeaderDesktop';
import HeaderMobile from 'ui/snippets/header/HeaderMobile';
import * as Layout from './components';
const LayoutDefault = ({ children }: Props) => {
return (
<Layout.Container>
<Layout.TopRow/>
<HeaderMobile/>
<Layout.MainArea>
<Layout.SideBar/>
<Layout.MainColumn>
<HeaderAlert/>
<HeaderDesktop/>
<AppErrorBoundary>
<Layout.Content>
{ children }
</Layout.Content>
</AppErrorBoundary>
</Layout.MainColumn>
</Layout.MainArea>
<Layout.Footer/>
</Layout.Container>
);
};
export default LayoutDefault;