mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-27 02:14:50 +10:00
feat(all): upgrade to v3.4.0
This commit is contained in:
@@ -3,7 +3,7 @@ import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
import { useRouter } from 'next/router';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
const DateWrapper: React.FC = ({ children }) => {
|
||||
const DateWrapper: React.FC<React.PropsWithChildren<unknown>> = ({ children }) => {
|
||||
const { locale } = useRouter();
|
||||
|
||||
useEffect(() => {
|
||||
@@ -12,8 +12,10 @@ const DateWrapper: React.FC = ({ children }) => {
|
||||
// Locales
|
||||
require('dayjs/locale/ar');
|
||||
require('dayjs/locale/bn');
|
||||
require('dayjs/locale/cs');
|
||||
require('dayjs/locale/da');
|
||||
require('dayjs/locale/de');
|
||||
require('dayjs/locale/el');
|
||||
require('dayjs/locale/en');
|
||||
require('dayjs/locale/es');
|
||||
require('dayjs/locale/fr');
|
||||
@@ -25,6 +27,7 @@ const DateWrapper: React.FC = ({ children }) => {
|
||||
require('dayjs/locale/pl');
|
||||
require('dayjs/locale/pt');
|
||||
require('dayjs/locale/ru');
|
||||
require('dayjs/locale/sv');
|
||||
require('dayjs/locale/ta');
|
||||
require('dayjs/locale/tr');
|
||||
require('dayjs/locale/vi');
|
||||
|
||||
@@ -4,7 +4,7 @@ import { useCallback, useEffect } from 'react';
|
||||
|
||||
import { useAppSelector } from '@/store/hooks';
|
||||
|
||||
const FontWrapper: React.FC = ({ children }) => {
|
||||
const FontWrapper: React.FC<React.PropsWithChildren<unknown>> = ({ children }) => {
|
||||
const typography = useAppSelector((state) => get(state.resume, 'metadata.typography'));
|
||||
|
||||
const loadFonts = useCallback(async () => {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useHotkeys } from 'react-hotkeys-hook';
|
||||
import { toggleSidebar } from '@/store/build/buildSlice';
|
||||
import { useAppDispatch } from '@/store/hooks';
|
||||
|
||||
const HotkeysWrapper: React.FC = ({ children }) => {
|
||||
const HotkeysWrapper: React.FC<React.PropsWithChildren<unknown>> = ({ children }) => {
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
useHotkeys('ctrl+/, cmd+/', () => {
|
||||
|
||||
@@ -5,7 +5,7 @@ import { darkTheme, lightTheme } from '@/config/theme';
|
||||
import { setTheme } from '@/store/build/buildSlice';
|
||||
import { useAppDispatch, useAppSelector } from '@/store/hooks';
|
||||
|
||||
const ThemeWrapper: React.FC = ({ children }) => {
|
||||
const ThemeWrapper: React.FC<React.PropsWithChildren<unknown>> = ({ children }) => {
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
const theme = useAppSelector((state) => state.build.theme);
|
||||
|
||||
@@ -3,7 +3,7 @@ import FontWrapper from './FontWrapper';
|
||||
import HotkeysWrapper from './HotkeysWrapper';
|
||||
import ThemeWrapper from './ThemeWrapper';
|
||||
|
||||
const WrapperRegistry: React.FC = ({ children }) => {
|
||||
const WrapperRegistry: React.FC<React.PropsWithChildren<unknown>> = ({ children }) => {
|
||||
return (
|
||||
<ThemeWrapper>
|
||||
<FontWrapper>
|
||||
|
||||
Reference in New Issue
Block a user