mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-27 18:40:33 +00:00
fix(breadcrumb-bar): rename to breadcrumb
This commit is contained in:
parent
1d487bdfc8
commit
52bbc059a4
@ -1,15 +1,15 @@
|
|||||||
import type { Meta, StoryObj } from '@storybook/react'
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
|
||||||
import BreadcrumbBar from './BreadcrumbBar'
|
import Breadcrumb from './Breadcrumb'
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'General/BreadcrumbBar',
|
title: 'General/Breadcrumb',
|
||||||
component: BreadcrumbBar,
|
component: Breadcrumb,
|
||||||
parameters: {
|
parameters: {
|
||||||
layout: 'top',
|
layout: 'top',
|
||||||
},
|
},
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
} satisfies Meta<typeof BreadcrumbBar>
|
} satisfies Meta<typeof Breadcrumb>
|
||||||
|
|
||||||
export default meta
|
export default meta
|
||||||
type Story = StoryObj<typeof meta>
|
type Story = StoryObj<typeof meta>
|
@ -2,13 +2,13 @@ import { Text } from '@status-im/components'
|
|||||||
import { ChevronRightIcon } from '@status-im/icons'
|
import { ChevronRightIcon } from '@status-im/icons'
|
||||||
import { XStack } from 'tamagui'
|
import { XStack } from 'tamagui'
|
||||||
|
|
||||||
import './BreadcrumbBar.css'
|
import './Breadcrumb.css'
|
||||||
|
|
||||||
type BreadcrumbBarProps = {
|
type BreadcrumbBarProps = {
|
||||||
breadcrumbList: string[]
|
breadcrumbList: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
const BreadcrumbBar = ({ breadcrumbList }: BreadcrumbBarProps) => {
|
const Breadcrumb = ({ breadcrumbList }: BreadcrumbBarProps) => {
|
||||||
return (
|
return (
|
||||||
<nav className="breadcrumb-bar-nav">
|
<nav className="breadcrumb-bar-nav">
|
||||||
<ul className="breadcrumb-bar-ul">
|
<ul className="breadcrumb-bar-ul">
|
||||||
@ -28,4 +28,4 @@ const BreadcrumbBar = ({ breadcrumbList }: BreadcrumbBarProps) => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default BreadcrumbBar
|
export default Breadcrumb
|
@ -1,7 +1,8 @@
|
|||||||
import { Text } from '@status-im/components'
|
import { Text } from '@status-im/components'
|
||||||
import { ExpandRsIcon } from '@status-im/icons'
|
import { ExpandRsIcon } from '@status-im/icons'
|
||||||
import { XStack, YStack } from 'tamagui'
|
import { XStack, YStack } from 'tamagui'
|
||||||
import BreadcrumbBar from '../../../components/General/BreadcrumbBar/BreadcrumbBar'
|
|
||||||
|
import Breadcrumb from '../../../components/General/Breadcrumb/Breadcrumb'
|
||||||
|
|
||||||
type PanelContentProps = {
|
type PanelContentProps = {
|
||||||
children: React.ReactNode
|
children: React.ReactNode
|
||||||
@ -21,7 +22,7 @@ const PanelContent = ({
|
|||||||
space={'$3'}
|
space={'$3'}
|
||||||
style={{ padding: isModalWidth ? 0 : '30px', alignItems: 'start' }}
|
style={{ padding: isModalWidth ? 0 : '30px', alignItems: 'start' }}
|
||||||
>
|
>
|
||||||
<BreadcrumbBar
|
<Breadcrumb
|
||||||
breadcrumbList={[
|
breadcrumbList={[
|
||||||
'Validator Management',
|
'Validator Management',
|
||||||
'Manage Validator',
|
'Manage Validator',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user