Skip to content

Commit

Permalink
fix: html tags
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti committed Jul 17, 2024
1 parent 33b5e22 commit 8b82fb8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
11 changes: 11 additions & 0 deletions src/components/Title.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
interface TitleProps {
title: string;
}

export const Title = ({ title }: TitleProps) => {
return (
<>
<h2> {title}</h2>
</>
);
};
11 changes: 6 additions & 5 deletions src/containers/Dashboard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { SearchBar, Table } from '~/components';
import { Title } from '~/components/Title';

const Dashboard = () => {
return (
<div>
<div>
<h1>Chain list</h1>
<section>
<header>
<Title title={'Chain list'} />
<SearchBar />
</div>
</header>
<Table />
</div>
</section>
);
};

Expand Down
2 changes: 1 addition & 1 deletion src/containers/Landing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const Landing = () => {
);
};

const LandingContainer = styled('div')({
const LandingContainer = styled('main')({
display: 'flex',
flexDirection: 'column',
padding: '0 8rem',
Expand Down
7 changes: 4 additions & 3 deletions src/containers/LockedAssets/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import { TotalValueLocked } from '~/components';
import { Title } from '~/components/Title';
import { useData } from '~/hooks';

export const LockedAssets = () => {
const { ecosystemData } = useData();

return (
<div>
<section>
{ecosystemData && (
<>
<h2>Locked assets in shared bridge: {ecosystemData.total}</h2>
<Title title={`Locked assets in shared bridge: ${ecosystemData.total}`} />
<TotalValueLocked tvl={ecosystemData.tvl} />
</>
)}
</div>
</section>
);
};

0 comments on commit 8b82fb8

Please sign in to comment.