refactor(v2): announcement bar bad spelling + minor refactors (#3343)

This commit is contained in:
Sébastien Lorber 2020-08-27 10:55:45 +02:00 committed by GitHub
parent 3ccca399f1
commit b86806460c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 11 deletions

View file

@ -166,7 +166,7 @@ const ThemeConfigSchema = Joi.object({
colorMode: ColorModeSchema,
image: Joi.string(),
announcementBar: Joi.object({
id: Joi.string(),
id: Joi.string().default('announcement-bar'),
content: Joi.string(),
backgroundColor: Joi.string().default('#fff'),
textColor: Joi.string().default('#000'),