ConceptPortal-public/rsconcept/frontend/src/pages/IconsPage.tsx
Ivan 4f9b48cce5
Some checks are pending
Frontend CI / build (22.x) (push) Waiting to run
F: Improve OSS UI controls
2024-07-26 21:09:16 +03:00

24 lines
769 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* eslint-disable @typescript-eslint/no-unsafe-call */
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import * as icons from '@/components/Icons';
export function IconsPage() {
const iconsList = Object.keys(icons).filter(key => key.startsWith('Icon'));
return (
<div className='flex flex-col items-center px-6 py-3'>
<h1 className='mb-6'>Всего иконок: {iconsList.length}</h1>
<div className='grid grid-cols-4'>
{iconsList.map((key, index) => (
<div key={`icons_list_${index}`} className='flex flex-col items-center px-3 pb-6'>
<p>{icons[key]({ size: '2rem' })}</p>
<p>{key}</p>
</div>
))}
</div>
</div>
);
}
export default IconsPage;