-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): add horizontal padding to navbar and main content
- Loading branch information
Alen Ajam
committed
May 4, 2023
1 parent
249481e
commit 012c09d
Showing
3 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import * as React from 'react'; | ||
import cn from 'classnames'; | ||
import { HTMLProps } from 'react'; | ||
|
||
export interface ContainerProps {} | ||
export type ContainerProps = HTMLProps<HTMLDivElement>; | ||
|
||
export const Container: React.FC<ContainerProps> = props => { | ||
return <div className={cn('container mx-auto')} {...props} />; | ||
export const Container: React.FC<ContainerProps> = ({ className, ...props }) => { | ||
return <div className={cn('container mx-auto', className)} {...props} />; | ||
}; | ||
|
||
Container.displayName = 'Container'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters