fix some bug

This commit is contained in:
hamid zarghami
2025-11-01 11:18:06 +03:30
parent 8c99e7dedf
commit e2b6f5845e
19 changed files with 979 additions and 68 deletions
+4 -3
View File
@@ -1,14 +1,15 @@
import { type FC, type ReactNode } from 'react'
import type { FC, ReactNode } from 'react'
interface Props {
text: string,
text: string | number | ReactNode,
children?: ReactNode,
dir?: string,
className?: string,
}
const Td: FC<Props> = (props: Props) => {
return (
<td className='td' style={{ direction: props.dir === "ltr" ? "ltr" : "rtl" }}>
<td className={`px-3 md:px-6 py-3 md:py-4 whitespace-nowrap text-xs ${props.className}`} style={{ direction: props.dir === "ltr" ? "ltr" : "rtl" }}>
{
props.text ?
props.text