checking in broken scss paths
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import useFieldType from '../../useFieldType';
|
||||
|
||||
const defaultValidate = value => value.length > 0;
|
||||
|
||||
const BooleanInput = (props) => {
|
||||
const {
|
||||
name,
|
||||
required,
|
||||
defaultValue,
|
||||
validate,
|
||||
style,
|
||||
width,
|
||||
errorMessage,
|
||||
label,
|
||||
} = props;
|
||||
|
||||
const {
|
||||
value,
|
||||
showError,
|
||||
processing,
|
||||
onFieldChange,
|
||||
} = useFieldType({
|
||||
name,
|
||||
required,
|
||||
defaultValue,
|
||||
validate,
|
||||
});
|
||||
|
||||
const fieldWidth = width ? `${width}%` : null;
|
||||
|
||||
return (
|
||||
<div
|
||||
className="field-type password"
|
||||
style={{
|
||||
...style,
|
||||
width: fieldWidth,
|
||||
}}
|
||||
>
|
||||
<input
|
||||
value={value || ''}
|
||||
onChange={onFieldChange}
|
||||
disabled={processing ? 'disabled' : undefined}
|
||||
type="password"
|
||||
id={name}
|
||||
name={name}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
BooleanInput.defaultProps = {};
|
||||
|
||||
BooleanInput.propTypes = {};
|
||||
|
||||
export default BooleanInput;
|
||||
@@ -1,4 +1,4 @@
|
||||
@import '~payload/client/scss/styles';
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
.heading-button {
|
||||
display: flex;
|
||||
|
||||
@@ -30,9 +30,6 @@ const Ellipsis = () => <span className="ellipsis">...</span>;
|
||||
|
||||
const Pagination = (props) => {
|
||||
const {
|
||||
totalDocs,
|
||||
limit,
|
||||
pagingCounter,
|
||||
totalPages,
|
||||
page: currentPage,
|
||||
hasPrevPage,
|
||||
|
||||
@@ -102,7 +102,6 @@ module.exports = (config) => {
|
||||
resolve: {
|
||||
modules: [path.resolve(__dirname, '../../../node_modules')],
|
||||
alias: {
|
||||
payload: path.resolve(__dirname, '../../'),
|
||||
'payload-scss-overrides': config.paths.scssOverrides,
|
||||
'payload-custom-components': config.paths.components,
|
||||
'payload-config': config.paths.config,
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
import usePayloadAPI from './client/hooks/usePayloadAPI';
|
||||
import getSanitizedConfig from './client/config/getSanitizedConfig';
|
||||
|
||||
export default {
|
||||
usePayloadAPI,
|
||||
getSanitizedConfig,
|
||||
};
|
||||
7
utilities.js
Normal file
7
utilities.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import usePayloadAPI from './src/client/hooks/usePayloadAPI';
|
||||
import getSanitizedConfig from './src/client/config/getSanitizedConfig';
|
||||
|
||||
export default {
|
||||
usePayloadAPI,
|
||||
getSanitizedConfig,
|
||||
};
|
||||
Reference in New Issue
Block a user