fix(breadcrumb): remove props

This commit is contained in:
RadoslavDimchev 2024-04-26 08:24:23 +03:00 committed by Emil Ivanichkov
parent d022f1f383
commit 3f9fefb275
2 changed files with 2 additions and 11 deletions

View File

@ -1,11 +1,8 @@
import { XStack } from 'tamagui'
import BreadcrumbElement from './BreadcrumbElement'
type BreadcrumbProps = {
breadcrumbList: string[]
}
const Breadcrumb = () => {
const Breadcrumb = ({ breadcrumbList }: BreadcrumbProps) => {
return (
<XStack space={'$2'} alignItems="center">
{breadcrumbList.map((element, index) => (

View File

@ -22,13 +22,7 @@ const PanelContent = ({
space={'$3'}
style={{ padding: isModalWidth ? 0 : '30px', alignItems: 'start' }}
>
<Breadcrumb
breadcrumbList={[
'Validator Management',
'Manage Validator',
'Migrate Panel',
]}
/>
<Breadcrumb />
<XStack style={{ width: '100%', justifyContent: 'space-between' }}>
<Text size={19} weight={'semibold'}>
{title}