mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
27 lines
725 B
TypeScript
27 lines
725 B
TypeScript
import { Grid, Text } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
interface Props {
|
|
title: string;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
const ContractVerificationMethod = ({ title, children }: Props) => {
|
|
const ref = React.useRef<HTMLDivElement>(null);
|
|
|
|
React.useEffect(() => {
|
|
ref.current?.scrollIntoView({ behavior: 'smooth' });
|
|
}, []);
|
|
|
|
return (
|
|
<section ref={ ref }>
|
|
<Text variant="secondary" mt={ 12 } mb={ 5 } fontSize="sm">{ title }</Text>
|
|
<Grid columnGap="30px" rowGap={{ base: 2, lg: 4 }} templateColumns={{ base: '1fr', lg: 'minmax(auto, 680px) minmax(0, 340px)' }}>
|
|
{ children }
|
|
</Grid>
|
|
</section>
|
|
);
|
|
};
|
|
|
|
export default React.memo(ContractVerificationMethod);
|