mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-05 22:38:48 +00:00
* Add and modify data-cy for widgets * Add selectors * Add constant texts and methods * Add common widget operations * Add momet to Cypress * Add common utils and optimized commands * Add methods specific for Datepicker * Add spec datePickerHappyPath * Minor selector modification * Add verification of value from inspector
14 lines
379 B
JavaScript
14 lines
379 B
JavaScript
import React from 'react';
|
|
|
|
export default function FxButton({ active, onPress, dataCy }) {
|
|
return (
|
|
<div
|
|
title="Use fx for property to have a programmatically determined value instead of a fixed value"
|
|
className={`fx-button ${active ? 'active' : ''} unselectable`}
|
|
onClick={onPress}
|
|
data-cy={`${dataCy}-fx-button`}
|
|
>
|
|
Fx
|
|
</div>
|
|
);
|
|
}
|