Files
klz-cables.com/.pnpm-store/v10/files/87/b716bcd77d7a1fcf8a00f6252f2944ec9389075deadb37348301f2678eee9f70041259bbc986a2ff4de7af44265ce17b7d52fe94e29714527e0f00d00c65f4
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

26 lines
902 B
Plaintext

import { jsx as _jsx } from "react/jsx-runtime";
import { toWords, transformColumnsToSearchParams } from 'payload/shared';
import React from 'react';
import { Pill } from '../../../Pill/index.js';
import './index.scss';
const baseClass = 'query-preset-columns-cell';
export const QueryPresetsColumnsCell = ({
cellData
}) => {
return /*#__PURE__*/_jsx("div", {
className: baseClass,
children: cellData ? transformColumnsToSearchParams(cellData).map((column, i) => {
const isColumnActive = !column.startsWith('-');
// to void very lengthy cells, only display the active columns
if (!isColumnActive) {
return null;
}
return /*#__PURE__*/_jsx(Pill, {
pillStyle: isColumnActive ? 'always-white' : 'light',
size: "small",
children: toWords(column)
}, i);
}) : 'No columns selected'
});
};
//# sourceMappingURL=index.js.map