[feature/frogend] modify local emoji (#1143)

* update danger button red

* emoji category and image modification

* debug bundles in dev

* fix linting error
This commit is contained in:
f0x52
2022-11-25 15:49:48 +01:00
committed by GitHub
parent b6dbe21026
commit 665d902fd7
11 changed files with 322 additions and 82 deletions

View File

@@ -26,16 +26,19 @@ const {
ComboboxPopover,
} = require("ariakit/combobox");
module.exports = function ComboBox({state, items, label, placeHolder}) {
module.exports = function ComboBox({state, items, label, placeHolder, children}) {
return (
<div className="form-field combobox-wrapper">
<label>
{label}
<Combobox
state={state}
placeholder={placeHolder}
className="combobox input"
/>
<div className="row">
<Combobox
state={state}
placeholder={placeHolder}
className="combobox input"
/>
{children}
</div>
</label>
<ComboboxPopover state={state} className="popover">
{items.map(([key, value]) => (

View File

@@ -20,11 +20,15 @@
const { useComboboxState } = require("ariakit/combobox");
module.exports = function useComboBoxInput({name, Name}, {validator} = {}) {
const state = useComboboxState({ gutter: 0, sameWidth: true });
module.exports = function useComboBoxInput({name, Name}, {validator, defaultValue} = {}) {
const state = useComboboxState({
defaultValue,
gutter: 0,
sameWidth: true
});
function reset() {
state.value = "";
state.setValue("");
}
return [