mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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:
@@ -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]) => (
|
||||
|
@@ -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 [
|
||||
|
Reference in New Issue
Block a user