Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c682444

Browse files
author
mbertamini@tuenti.com
committed
wrapper map div acceps className and style
1 parent 5038ac4 commit c682444

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/GoogleApiComponent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const defaultCreateCache = options => {
3434

3535
const DefaultLoadingContainer = props => <div>Loading...</div>;
3636

37-
export const wrapper = input => WrappedComponent => {
37+
export const wrapper = (input,className,style) => WrappedComponent => {
3838
class Wrapper extends React.Component {
3939
constructor(props, context) {
4040
super(props, context);
@@ -126,7 +126,7 @@ export const wrapper = input => WrappedComponent => {
126126
});
127127

128128
return (
129-
<div>
129+
<divclassName={className}style={style}>
130130
<WrappedComponent {...props} />
131131
<div ref={this.mapRef} />
132132
</div>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /