@financial-times/n-conversion-forms
Version:
Containing jsx components and styles for forms included on Accounts and Acquisition apps (next-signup, next-profile, next-retention, etc).
43 lines (42 loc) • 1.61 kB
JSX
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.BillingCountry = BillingCountry;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _country = require("./country");
function BillingCountry(_ref) {
var _ref$fieldId = _ref.fieldId,
fieldId = _ref$fieldId === void 0 ? 'billingCountryField' : _ref$fieldId,
_ref$filterList = _ref.filterList,
filterList = _ref$filterList === void 0 ? [] : _ref$filterList,
_ref$hasError = _ref.hasError,
hasError = _ref$hasError === void 0 ? false : _ref$hasError,
_ref$inputId = _ref.inputId,
inputId = _ref$inputId === void 0 ? 'billingCountry' : _ref$inputId,
_ref$isDisabled = _ref.isDisabled,
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
value = _ref.value;
return /*#__PURE__*/_react["default"].createElement(_country.Country, {
dataTrackable: "field-billing-country",
fieldId: fieldId,
filterList: filterList,
hasError: hasError,
inputId: inputId,
isB2b: false,
isDisabled: isDisabled,
isPlaceholderDisabled: true,
label: "Billing Country",
value: value
});
}
BillingCountry.propTypes = {
fieldId: _propTypes["default"].string,
filterList: _propTypes["default"].arrayOf(_propTypes["default"].string),
hasError: _propTypes["default"].bool,
inputId: _propTypes["default"].string,
isDisabled: _propTypes["default"].bool,
value: _propTypes["default"].string
};