WebJamApps/JaMmusic

View on GitHub
src/containers/BuyMusic/index.tsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { Component } from 'react';
import Jsb from './BuyLinks/joshShermanBand';
import Jss from './BuyLinks/joshShermanSolo';
import Jssp from './MediaLinks/joshShermanSpotify';
import { JoshShermanAppleOrYouTube } from './MediaLinks/joshShermanAppleOrYouTube';
import commonUtils from '../../lib/utils';

export default class BuyMusic extends Component {
  commonUtils: { setTitleAndScroll: (pageTitle: string, width: number) => void };

  constructor(props: Record<string, unknown>) {
    super(props);
    this.commonUtils = commonUtils;
  }

  componentDidMount(): void { this.commonUtils.setTitleAndScroll('Buy Music', window.screen.width); }

  render(): JSX.Element {
    return (
      <div
        className="page-content"
        style={{
          paddingRight: '15px', maxWidth: '800px', margin: 'auto', borderRight: 'none',
        }}
      >
        <h2 style={{
          textAlign: 'center', margin: '20px', fontWeight: 'bold', marginBottom: '10px',
        }}
        >
          Buy from CD Baby
        </h2>
        <div className="row top-row-style">
          <Jsb />
          <Jss />
        </div>
        <Jssp />
        <JoshShermanAppleOrYouTube service="Apple Music" />
        <JoshShermanAppleOrYouTube service="YouTube" />
      </div>
    );
  }
}