Skip to content
Snippets Groups Projects
Commit d510292b authored by Brian Peiris's avatar Brian Peiris
Browse files

avoid abbreviations

parent f7648e12
No related branches found
No related tags found
No related merge requests found
......@@ -10,13 +10,13 @@
display: flex;
justify-content: center;
&__prev-button:focus, &__next-button:focus {
&__previous-button:focus, &__next-button:focus {
outline: none;
}
&__prev-button:active, &__next-button:active {
&__previous-button:active, &__next-button:active {
color: grey;
}
&__prev-button, &__next-button {
&__previous-button, &__next-button {
position: absolute;
top: 50%;
margin-top: -4em;
......@@ -27,7 +27,7 @@
color: white;
border: none;
}
&__prev-button {
&__previous-button {
left: -2em;
}
&__next-button {
......
......@@ -23,8 +23,8 @@ class AvatarSelector extends Component {
}
emitChangeToPrevious = () => {
const prevAvatarId = this.props.avatars[this.prevAvatarIndex()].id;
this.props.onChange(prevAvatarId);
const previousAvatarId = this.props.avatars[this.previousAvatarIndex()].id;
this.props.onChange(previousAvatarId);
}
componentDidUpdate() {
......@@ -107,7 +107,7 @@ class AvatarSelector extends Component {
position="0 0 0"
></a-gltf-entity>
</a-scene>
<button className="avatar-selector__prev-button" onClick={this.emitChangeToPrevious}>
<button className="avatar-selector__previous-button" onClick={this.emitChangeToPrevious}>
<i className="avatar-selector__button-icon material-icons">keyboard_arrow_left</i>
</button>
<button className="avatar-selector__next-button" onClick={this.emitChangeToNext}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment