feat(all): upgrade to v3.4.0

This commit is contained in:
Amruth Pillai
2022-04-30 12:58:17 +02:00
parent ccfb4d3cb0
commit 87d381fe8e
61 changed files with 23676 additions and 1291 deletions
+4 -1
View File
@@ -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');
+1 -1
View File
@@ -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 () => {
+1 -1
View File
@@ -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+/', () => {
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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>