Skip to content

Commit

Permalink
feat: update query block source menu ordering (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
baiirun authored Jan 10, 2025
1 parent 0675eda commit eb6d2e6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions apps/web/partials/blocks/table/data-block-source-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,7 @@ export const DataBlockSourceMenu = ({
{source.type === 'COLLECTION' && <Check />}
</button>
</MenuItem>
<MenuItem active={source.type === 'ENTITY'}>
<button onClick={() => setView('entity')} className="flex w-full items-center justify-between gap-2">
<span className="text-button text-text">Entity</span>
{source.type === 'ENTITY' && <Check />}
</button>
</MenuItem>

<MenuItem active={source.type === 'SPACES'}>
<button onClick={() => setView('spaces')} className="flex w-full items-center justify-between gap-2">
<div>
Expand Down Expand Up @@ -83,6 +78,12 @@ export const DataBlockSourceMenu = ({
<ChevronRight />
</button>
</MenuItem>
<MenuItem active={source.type === 'ENTITY'}>
<button onClick={() => setView('entity')} className="flex w-full items-center justify-between gap-2">
<span className="text-button text-text">Single entity</span>
{source.type === 'ENTITY' && <Check />}
</button>
</MenuItem>
<MenuItem active={source.type === 'GEO'}>
<button
onClick={() => {
Expand Down

0 comments on commit eb6d2e6

Please sign in to comment.