refactor(PBI-49): remove data-debug-label from debugProps helper + test
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
898de87d71
commit
f7a44f85a8
2 changed files with 3 additions and 6 deletions
|
|
@ -1,16 +1,14 @@
|
|||
export type DebugProps = {
|
||||
'data-debug-id': string
|
||||
'data-debug-label': string
|
||||
}
|
||||
|
||||
export function debugProps(
|
||||
id: string,
|
||||
component: string,
|
||||
file: string
|
||||
_component?: string,
|
||||
_file?: string
|
||||
): DebugProps | Record<string, never> {
|
||||
if (process.env.NODE_ENV === 'production') return {}
|
||||
return {
|
||||
'data-debug-id': id,
|
||||
'data-debug-label': `${component} — ${file}`,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue