-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
36 additions
and
23 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
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,19 +1,17 @@ | ||
import * as React from 'react'; | ||
import {RemoveScroll} from "./UI"; | ||
import {IRemoveScrollProps} from './types'; | ||
import {IRemoveScrollProps, RemoveScrollType} from './types'; | ||
import SideCar from './sidecar'; | ||
|
||
function ReactRemoveScroll(props: IRemoveScrollProps) { | ||
return ( | ||
<RemoveScroll | ||
{...props} | ||
sideCar={SideCar} | ||
/> | ||
); | ||
} | ||
const ReactRemoveScroll: RemoveScrollType = React.forwardRef<HTMLElement, IRemoveScrollProps>((props, ref) => ( | ||
<RemoveScroll | ||
{...props} | ||
ref={ref} | ||
sideCar={SideCar} | ||
/> | ||
)) as any; | ||
|
||
ReactRemoveScroll.classNames = RemoveScroll.classNames; | ||
|
||
namespace ReactRemoveScroll { | ||
export let classNames = RemoveScroll.classNames; | ||
} | ||
|
||
export default ReactRemoveScroll; |
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
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