fix production build errors

This commit is contained in:
Brandon Thomas committed 2020-06-22 06:01:10 -04:00
1 parent 0970e07879
commit cf10bb296f
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ class App extends React.Component<Props, State> {
setSpeakerBySlug = (speakerSlug: string) : void => {
console.log('speaker', speakerSlug);
SPEAKERS.forEach(speaker => {
if (speaker.slug == speakerSlug) {
if (speaker.slug === speakerSlug) {
this.setState({ speaker: speaker });
}
})
+1 -1
View File
@@ -20,7 +20,7 @@ class Avatar extends React.Component<Props, State> {
const source = `https://via.placeholder.com/300x300/FF0000/FFFFFF?text=${this.props.currentSpeaker.getSlug()}`;
return (
<div>
<img src={source} />
<img src={source} alt="speaker image" />
</div>
);
}
+2 -1
View File
@@ -3,7 +3,8 @@ import React from 'react';
import { SpeakRequest } from './SpeakRequest';
import { Speaker } from '../../Speakers';
import { createColorMap, linearScale } from "@colormap/core";
import { VIRIDIS, CIVIDIS, PLASMA, INFERNO, MAGMA, BLACK_WHITE, } from "@colormap/presets";
//import { VIRIDIS, CIVIDIS, PLASMA, INFERNO, MAGMA, BLACK_WHITE, } from "@colormap/presets";
import { MAGMA } from "@colormap/presets";
class Spectrogram {
pixels: Uint8ClampedArray;