Skip to content

Commit

Permalink
Merge pull request #11 from khakimov/fix-missing-key-prop
Browse files Browse the repository at this point in the history
  • Loading branch information
UdaraJay committed Nov 5, 2023
2 parents 6a3315e + cf56545 commit 44a6931
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/renderer/pages/Pile/Posts/Post/Ball/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ const Ball = ({
const [person, setPerson] = React.useState('pedro');

const renderHightlights = () => {
return Array.from(highlights, ([highlight, data]) => {
return Array.from(highlights, ([highlight, data], index) => {
return (
<DropdownMenu.Item
key={index}
className={styles.DropdownMenuItem}
onSelect={() => setHighlight(highlight)}
>
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/pages/Pile/Settings/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ export default function Settings() {
};

const renderThemes = () => {
return Object.keys(availableThemes).map((theme) => {
return Object.keys(availableThemes).map((theme, index) => {
const colors = availableThemes[theme];
return (
<button
key={index}
className={`${styles.theme} ${
currentTheme == theme && styles.current
}`}
Expand Down

0 comments on commit 44a6931

Please sign in to comment.