use Box instead of Block
This commit is contained in:
1 parent
c0694b0953
commit
671f737d25
5 files changed
+16
-62
No files matched your search
@@ -3,13 +3,13 @@ import { ConfigContext } from "src/context/ConfigContext"
|
||||
import config from "src/config"
|
||||
import { Footer } from "../Footer"
|
||||
import { Content } from "../Content"
|
||||
import { Block } from "../Block"
|
||||
import { Breadcrumbs } from "../Breadcrumbs"
|
||||
import { IBreadcumbsPart, IMenu } from "src/types"
|
||||
import { useRouter } from "next/router"
|
||||
import { useMobile } from "src/hooks/useMobile"
|
||||
import { Gosuslugi } from "../Gosuslugi"
|
||||
import { Navigation } from "@/components/Navigation"
|
||||
import { Box } from "@/ui/Box"
|
||||
|
||||
export type AppProps = {
|
||||
showAuthor?: boolean
|
||||
@@ -38,14 +38,14 @@ export const App: React.FC<AppProps> = ({ showAuthor = false, menu, ...props })
|
||||
// margin: "0 var(--size-m) var(--size-m)",
|
||||
}} />
|
||||
{hideBreadcrumbs || !props.breadcrumbs ? null : (
|
||||
<Block direction={"horizontal"} style={blockStyle}>
|
||||
<Box style={blockStyle}>
|
||||
<Content>
|
||||
<Breadcrumbs
|
||||
items={props.breadcrumbs}
|
||||
path={router.asPath}
|
||||
/>
|
||||
</Content>
|
||||
</Block>
|
||||
</Box>
|
||||
)}
|
||||
</header>
|
||||
)}
|
||||
@@ -64,11 +64,11 @@ export const App: React.FC<AppProps> = ({ showAuthor = false, menu, ...props })
|
||||
</Footer>
|
||||
)}
|
||||
>
|
||||
<Block direction={"horizontal"} style={blockStyle}>
|
||||
<Box style={blockStyle}>
|
||||
<Content style={props.contentStyle}>
|
||||
{props.children}
|
||||
</Content>
|
||||
</Block>
|
||||
</Box>
|
||||
</Wrapper>
|
||||
</ConfigContext.Provider>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user