Skip to content

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+
<div className={className} style={style}>
130130
<WrappedComponent {...props} />
131131
<div ref={this.mapRef} />
132132
</div>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy