Got healthbars persisting data to the database
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
|
||||
const ColorSchema = new SimpleSchema({
|
||||
color: {
|
||||
type: String,
|
||||
defaultValue: "#9E9E9E",
|
||||
// match hex colors of the form #A23 or #A23f56
|
||||
regEx: /^#([a-f0-9]{3}){1,2}\b$/i,
|
||||
},
|
||||
const ColorSchema = ({optional = false} = {}) => ({
|
||||
type: String,
|
||||
defaultValue: "#9E9E9E",
|
||||
// match hex colors of the form #A23 or #A23f56
|
||||
regEx: /^#([a-f0-9]{3}){1,2}\b$/i,
|
||||
optional
|
||||
});
|
||||
|
||||
export default ColorSchema;
|
||||
|
||||
Reference in New Issue
Block a user