Skip to content

Commit 900fa21

Browse files
author
Nicolas Garnier
committed
Passing className to the underlying container.
1 parent 30fa5c9 commit 900fa21

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/FirebaseAuth.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default class FirebaseAuth extends React.Component {
3636
this.uiConfig = props.uiConfig;
3737
this.firebaseAuth = props.firebaseAuth;
3838
this.elementId = props.elementId || ELEMENT_ID;
39+
this.className = props.className;
3940
}
4041

4142
/**
@@ -67,16 +68,17 @@ export default class FirebaseAuth extends React.Component {
6768
uiConfig: Object, // The Firebase UI Web UI Config object.
6869
// See: https://github.com/firebase/firebaseui-web#configuration
6970
firebaseAuth: Object, // The Firebase App auth instance to use.
70-
elementId?: String // The ID of the underlying container that we'll generate.
71-
// Use this if you use more than one instance at a time in your app.
71+
elementId?: String, // The ID of the underlying container that we'll generate.
72+
// Use this if you use more than one instance at a time in your app.
73+
className: String
7274
};
7375

7476
/**
7577
* @inheritDoc
7678
*/
7779
render() {
7880
return (
79-
<div id={this.elementId}/>
81+
<div className={this.className} id={this.elementId}/>
8082
);
8183
}
8284
}

0 commit comments

Comments
 (0)