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:
@ -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>
|
||||
|
Reference in New Issue
Block a user