mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 00:32:35 +10:00
🚀 release v3.0.0
This commit is contained in:
13
client/wrappers/DateWrapper.tsx
Normal file
13
client/wrappers/DateWrapper.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
const DateWrapper: React.FC = ({ children }) => {
|
||||
useEffect(() => {
|
||||
dayjs.extend(relativeTime);
|
||||
}, []);
|
||||
|
||||
return <>{children}</>;
|
||||
};
|
||||
|
||||
export default DateWrapper;
|
||||
Reference in New Issue
Block a user