fix: Bug-doc fixes (#52)

Co-authored-by: Leangseu Kim <lkim@edx.org>
This commit is contained in:
Ben Warzeski
2022-10-25 15:36:33 -04:00
committed by GitHub
parent f8b181e8c9
commit 61e484af1f
27 changed files with 404 additions and 165 deletions

12
src/utils/hooks.js Normal file
View File

@@ -0,0 +1,12 @@
import { useIntl } from '@edx/frontend-platform/i18n';
import dateFormatter from './dateFormatter';
export const useFormatDate = () => {
const { formatDate } = useIntl();
return (date) => dateFormatter(formatDate, date);
};
export default {
useFormatDate,
};