chore: rename project to liqa and fix code quality issues
- rename package names from liquio-qa-bot to liqa/liqa-client/liqa-server - replace QA Bot text with liqa.svg logo image in sidebar header - add favicon.svg (liqa-mini.svg) and page title update - fix DescriptionList extractText generic type for TS strict props access - configure server eslint to allow underscore-prefixed unused vars - fix session.controller unused destructured vars (_cookies, _localStorage) - update server package.json version import path after server rename - fix session DELETE test assertion from 200 to 204
This commit is contained in:
@@ -4,7 +4,8 @@ import styles from './DescriptionList.module.css';
|
||||
function extractText(node: React.ReactNode): string {
|
||||
if (typeof node === 'string' || typeof node === 'number') return String(node);
|
||||
if (Array.isArray(node)) return node.map(extractText).join('');
|
||||
if (React.isValidElement(node)) return extractText(node.props.children);
|
||||
if (React.isValidElement<{ children?: React.ReactNode }>(node))
|
||||
return extractText(node.props.children);
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user