1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

fix: calculate age client side so it updates "automatically" (not only on rebuild)

This commit is contained in:
Divlo
2022-03-24 18:57:27 +01:00
parent 6abc881e94
commit f67d331416
8 changed files with 35 additions and 67 deletions

View File

@ -3,19 +3,13 @@ import { ProfileInformation } from './ProfileInfo'
import { ProfileList } from './ProfileList'
import { ProfileLogo } from './ProfileLogo'
export interface ProfileProps {
age: number
}
export const Profile: React.FC<ProfileProps> = (props) => {
const { age } = props
export const Profile: React.FC = () => {
return (
<div className='flex flex-col items-center justify-center px-10 pt-2 md:flex-row md:pt-10'>
<ProfileLogo />
<div>
<ProfileInformation />
<ProfileList age={age} />
<ProfileList />
<ProfileDescriptionBottom />
</div>
</div>