From 4748a80ae6fa76721829e97efe1ad480672d72a4 Mon Sep 17 00:00:00 2001 From: Liam Ma Date: Mon, 21 Aug 2023 11:40:46 +1000 Subject: [PATCH] Update error messages --- packages/babel-plugin/src/utils/css-map.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/babel-plugin/src/utils/css-map.ts b/packages/babel-plugin/src/utils/css-map.ts index ebc3074ec..4ef21e125 100644 --- a/packages/babel-plugin/src/utils/css-map.ts +++ b/packages/babel-plugin/src/utils/css-map.ts @@ -12,12 +12,12 @@ import type { EvaluateExpression } from './types'; // The messages are exported for testing. export enum ErrorMessages { NUMBER_OF_ARGUMENT = 'You must provide cssMap with only one argument.', - ARGUMENT_TYPE = 'cssMap can receive object only.', + ARGUMENT_TYPE = 'cssMap can only receive an object.', NESTED_VARIANT = 'You cannot access a nested CSS Map.', VARIANT_CALL_EXPRESSION = 'You cannot use a function call to access a CSS Map.', VARIANT_ACCESS = "You cannot access a CSS Map this way. Please use a string literal (e.g. styles['variantName']) or an identifier (e.g. styles[variantName]).", - STATIC_VARIANT_OBJECT = 'You must statically define variant object.', - STATIC_VARIANT_KEY = 'You must statically define variant keys.', + STATIC_VARIANT_OBJECT = 'The variant object must be statically defined.', + STATIC_VARIANT_KEY = 'The variant key must be statically defined.', } const createErrorMessage = (message: string): string => {