Skip to content

Commit

Permalink
[web] Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed Nov 24, 2023
1 parent 2d58416 commit b8bcd74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/src/components/l10n/KeymapSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const KeymapItem = ({ keymap }) => {
return (
<>
<div>{keymap.name}</div>
<div {...{ "data-type": "details" }}>{keymap.id}</div>
<div data-type="details">{keymap.id}</div>
</>
);
};
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/l10n/LocaleSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const LocaleItem = ({ locale }) => {
<>
<div>{locale.name}</div>
<div>{locale.territory}</div>
<div {...{ "data-type": "details" }}>{locale.id}</div>
<div data-type="details">{locale.id}</div>
</>
);
};
Expand Down Expand Up @@ -85,7 +85,7 @@ export default function LocaleSelector({ value, locales = [], onChange = noop })
onClick={() => onChange(locale.id)}
isSelected={locale.id === value}
className="cursor-pointer"
{...{ "data-type": "locale" }}
data-type="locale"
>
<LocaleItem locale={locale} />
</ListBoxItem>
Expand Down
3 changes: 1 addition & 2 deletions web/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ const useLocalStorage = (storageKey, fallbackState) => {
};

/**
* Kudos to Sumit kumar Singh.
* See https://designtechworld.medium.com/create-a-custom-debounce-hook-in-react-114f3f245260
* Source https://designtechworld.medium.com/create-a-custom-debounce-hook-in-react-114f3f245260
*/

const useDebounce = (callback, delay) => {
Expand Down

0 comments on commit b8bcd74

Please sign in to comment.