Skip to content

Commit

Permalink
A few UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
junaid33 committed Oct 1, 2024
1 parent e3340c8 commit c688726
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion keystone/themes/Tailwind/atlas/components/Fields/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const RenderField = memo(function RenderField({
<field.views.Field
field={{
...field.controller,
hideButtons: field.fieldMeta.hideButtons,
hideButtons: field.fieldMeta?.hideButtons,
}}
onChange={useMemo(() => {
if (onChange === undefined) return undefined;
Expand Down
23 changes: 12 additions & 11 deletions keystone/themes/Tailwind/atlas/components/FilterAdd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,18 +203,19 @@ function FilterAddPopoverContent({ onClose, listKey, filterableFields }) {
(() => {
const { Filter } =
fieldsWithFilters[state.fieldPath].controller.filter;
console.log({ state });
return (
<Filter
type={state.filterType}
value={state.filterValue}
onChange={(value) => {
setState((state) => ({
...state,
filterValue: value,
}));
}}
/>
<div className="pb-3">
<Filter
type={state.filterType}
value={state.filterValue}
onChange={(value) => {
setState((state) => ({
...state,
filterValue: value,
}));
}}
/>
</div>
);
})()}
</ScrollArea>
Expand Down

0 comments on commit c688726

Please sign in to comment.