ToolJet/frontend/src/Editor/CodeBuilder/Elements/FxButton.jsx
Midhun Kumar E a68c727eae
Add cypress test for date picker widget (#3592)
* 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
2022-07-20 12:41:50 +05:30

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>
);
}