This repository was archived by the owner on Mar 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +9
-10
lines changed
Expand file tree Collapse file tree 4 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1010 "suspicious" : {
1111 "noEmptyInterface" : " off" ,
1212 "noExplicitAny" : " off" ,
13- "noArrayIndexKey" : " off" ,
14- "noShadowRestrictedNames" : " off"
13+ "noArrayIndexKey" : " off"
1514 },
1615 "a11y" : {
1716 "noSvgWithoutTitle" : " off"
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const getWidth = (width: TextInputWidth): string => {
4747 }
4848}
4949
50- const Error = styled . div < {
50+ const ErrorContainer = styled . div < {
5151 readonly compact : boolean
5252} > `
5353 color: ${ ( { theme } ) => theme . color . elementError ( ) } ;
@@ -447,14 +447,14 @@ function Input<T extends string | NumberInputType>({
447447 </ ErrorIconContainer >
448448 ) : null }
449449 { error !== undefined ? (
450- < Error compact = { compact } >
450+ < ErrorContainer compact = { compact } >
451451 < ErrorLineContainer >
452452 < ErrorLine hasErrorMessage = { error !== '' } />
453453 </ ErrorLineContainer >
454454 { errorVariant === 'text' && error !== '' ? (
455455 < ErrorMessageText errorVariant = { errorVariant } error = { error } />
456456 ) : null }
457- </ Error >
457+ </ ErrorContainer >
458458 ) : (
459459 < FocusLine />
460460 ) }
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import { Typography } from '../Typography'
1414
1515const TEXT_AREA_HEIGHT = '96px'
1616
17- const Error = styled . div `
17+ const ErrorContainer = styled . div `
1818 color : ${ ( { theme } ) => theme . color . elementError ( ) } ;
1919 line-height : 16px ;
2020 background-color : transparent;
@@ -265,7 +265,7 @@ export const TextArea: FC<TextAreaProps> = ({
265265 ref = { textareaRef }
266266 />
267267 { error !== undefined ? (
268- < Error >
268+ < ErrorContainer >
269269 < ErrorLineContainter >
270270 < ErrorLine hasErrorMessage = { error !== '' } />
271271 </ ErrorLineContainter >
@@ -274,7 +274,7 @@ export const TextArea: FC<TextAreaProps> = ({
274274 < Typography variant = "explanatory-text" > { error } </ Typography >
275275 </ ErrorMessage >
276276 ) : null }
277- </ Error >
277+ </ ErrorContainer >
278278 ) : (
279279 < FocusLine />
280280 ) }
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const EditorContainer = styled.div`
4141 overflow: hidden;
4242`
4343
44- const Error = styled ( LiveError ) `
44+ const ErrorContainer = styled ( LiveError ) `
4545 background-color: ${ ( { theme } ) => theme . color . elementError ( 0.3 ) } ;
4646 font-size: 12px;
4747 padding: ${ practicalcore . spacing . large } ;
@@ -105,7 +105,7 @@ export const Code = ({
105105 < Editor >
106106 < LiveEditor theme = { lightTheme } />
107107 </ Editor >
108- < Error />
108+ < ErrorContainer />
109109 </ EditorContainer >
110110 ) : null }
111111 < Preview />
You can’t perform that action at this time.
0 commit comments