* feat: enable Typescript in this repo * refactor: rename studio-header files to .ts[x] * chore: fix minor type warnings * chore: add types for frontend-platform * chore: fix type issues * chore: update name of suppressed lint check
26 lines
482 B
TypeScript
26 lines
482 B
TypeScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { Link } from 'react-router-dom';
|
|
|
|
const BrandNav = ({
|
|
studioBaseUrl,
|
|
logo,
|
|
logoAltText,
|
|
}) => (
|
|
<Link to={studioBaseUrl}>
|
|
<img
|
|
src={logo}
|
|
alt={logoAltText}
|
|
className="d-block logo"
|
|
/>
|
|
</Link>
|
|
);
|
|
|
|
BrandNav.propTypes = {
|
|
studioBaseUrl: PropTypes.string.isRequired,
|
|
logo: PropTypes.string.isRequired,
|
|
logoAltText: PropTypes.string.isRequired,
|
|
};
|
|
|
|
export default BrandNav;
|