fix(client): fix issues raised through lgtm alerts

This commit is contained in:
Amruth Pillai
2022-03-12 18:56:00 +01:00
parent ef06240935
commit dfccb3130f
9 changed files with 17 additions and 17 deletions

View File

@ -1,5 +1,5 @@
import { Email, Link, Phone } from '@mui/icons-material';
import { ListItem, Section } from '@reactive-resume/schema';
import { ListItem, Section as SectionType } from '@reactive-resume/schema';
import get from 'lodash/get';
import isArray from 'lodash/isArray';
import isEmpty from 'lodash/isEmpty';
@ -21,7 +21,7 @@ const Section: React.FC<SectionProps> = ({
headlinePath = 'headline',
keywordsPath = 'keywords',
}) => {
const section: Section = useAppSelector((state) => get(state.resume, path, {}));
const section: SectionType = useAppSelector((state) => get(state.resume, path, {}));
const dateFormat: string = useAppSelector((state) => get(state.resume, 'metadata.date.format'));
const primaryColor: string = useAppSelector((state) => get(state.resume, 'metadata.theme.primary'));