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
nion: { | |
entities: { | |
user: { | |
'3803025': { | |
attributes: {...}, | |
relationships: {}, | |
} | |
} | |
}, |
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
import nion from 'nion' | |
@nion({ | |
currentUser: { | |
endpoint: buildUrl('/api/current-user', { fields: user: ['avatarUrl'] }), | |
apiType: 'jsonApi' | |
} | |
}) | |
class UserContainer extends Component { | |
render() { |
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
@nion({ | |
currentUser: { | |
endpoint: buildUrl('/api/current-user'), | |
apiType: 'jsonApi' | |
} | |
}) | |
class UserContainer extends Component { | |
render() { | |
const { request, actions, data } = this.props.nion.currentUser | |
return ( |
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
import React, { Component } from 'react' | |
import styled from 'styled-components' | |
class VerifyPasswordComponent extends Component { | |
render() { | |
return <StyledVerifyPasswordComponent>Yo</StyledVerifyPasswordComponent> | |
} | |
} | |
const StyledVerifyPasswordComponent = styled.span` |