Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-layout
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
packages
pro-layout
Commits
f6bf59f2
Commit
f6bf59f2
authored
Aug 05, 2020
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Header contentWidth type check
parent
a7c7d0eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Header.jsx
src/Header.jsx
+1
-1
No files found.
src/Header.jsx
View file @
f6bf59f2
...
...
@@ -30,7 +30,7 @@ export const HeaderViewProps = {
const
renderContent
=
(
h
,
props
)
=>
{
const
isTop
=
props
.
layout
===
'topmenu'
const
maxWidth
=
1200
-
280
-
120
const
contentWidth
=
props
.
contentWidth
const
contentWidth
=
props
.
contentWidth
===
'Fixed'
const
baseCls
=
'ant-pro-top-nav-header'
const
{
logo
,
title
,
theme
,
isMobile
,
headerRender
,
rightContentRender
}
=
props
const
rightContentProps
=
{
theme
,
isTop
,
isMobile
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment