Skip to content

Commit

Permalink
Merge pull request #281 from gouravmore/all-1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gouravmore authored Feb 21, 2025
2 parents 3245745 + 97a0217 commit da2deea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 4 additions & 8 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta http-equiv="Content-Security-Policy" content="
default-src 'self' https://*.squarespace-cdn.com https://*.googleapis.com https://*.gstatic.com https://*.cdnfonts.com https://*.jsdelivr.net;
img-src 'self' data: https://*.squarespace-cdn.com;
style-src 'self' https://*.googleapis.com https://*.gstatic.com https://*.cdnfonts.com;
script-src 'self' https://*.jsdelivr.net;
font-src 'self' https://*.googleapis.com https://*.gstatic.com https://*.cdnfonts.com;
connect-src 'self';
frame-ancestors 'self';
<meta http-equiv="Content-Security-Policy" content="default-src 'self';
img-src 'self';
script-src 'https';
connect-src 'https';
">
<meta
name="description"
Expand Down
4 changes: 2 additions & 2 deletions src/components/Mechanism/WordsOrImage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ WordsOrImage.propTypes = {
setEnableNext: PropTypes.func.isRequired,
startShowCase: PropTypes.bool,
setStartShowCase: PropTypes.func,
setLivesData: PropTypes.func.isRequired,
setLivesData: PropTypes.func,
loading: PropTypes.bool,
setOpenMessageDialog: PropTypes.func.isRequired,
isNextButtonCalled: PropTypes.bool,
setIsNextButtonCalled: PropTypes.func,
background: PropTypes.bool,
background: PropTypes.string,
type: PropTypes.any,
words: PropTypes.any,
storyLine: PropTypes.number,
Expand Down
10 changes: 7 additions & 3 deletions src/utils/RecordVoiceVisualizer.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from "react";

export default function RecordVoiceVisualizer() {
const bar1 = (
<span
Expand Down Expand Up @@ -58,21 +60,23 @@ export default function RecordVoiceVisualizer() {
for (let i = 0; i <= Number(value.times); i++) {
renderArr.push(
<span
key={`${key}-${i}`}
className={`playing__bar playing__bar${value.bar}`}
style={{
height: `${Math.floor(Math.random() * 100)}%`,
animationDelay: `${Math.random() * 5}s`,
}}
></span>,
></span>
);
}
return renderArr;
};

return (
<div style={{ position: 'relative' }}>
<div className="playing">
{Object.entries(renderType).map(([key, value]) => {
return <>{renderBar(key, value)}</>;
return <React.Fragment key={key}>{renderBar(key, value)}</React.Fragment>;
})}
</div>
<div
Expand All @@ -82,7 +86,7 @@ export default function RecordVoiceVisualizer() {
{Object.entries(renderType)
.reverse()
.map(([key, value]) => {
return <>{renderBar(key, value)}</>;
return <React.Fragment key={key}>{renderBar(key, value)}</React.Fragment>;
})}
</div>
</div>
Expand Down

0 comments on commit da2deea

Please sign in to comment.