mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
fix production build errors
This commit is contained in:
1 parent
0970e07879
commit
cf10bb296f
3 files changed
+4
-3
No files matched your search
+1
-1
@@ -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 });
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user