@rnga/orders
Version:
## Get schema from @prisma-cms 1. yarn get-api-schema -e http://localhost:4000 2. yarn build-api-fragments
24 lines (14 loc) • 357 B
JavaScript
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import Link from '../';
const propTypes = Object.assign({...Link.propTypes}, {
username: PropTypes.string.isRequired,
});
export default class UserLink extends Link {
getUrl(){
const {
username,
} = this.props;
return `/profile/${username}/`;
}
}