From 473aa6237980c2db1d9e782ec0576ea8459721f5 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 20:01:52 +0000 Subject: [PATCH] style: format code with prettier Format code with prettier This commit fixes the style issues introduced in 7e0e078 according to the output from Prettier. Details: None --- src/stores/slices/basic/interfaces/index.ts | 36 +- src/templates/Spectrum/index.tsx | 552 +++++++++--------- .../Editor/components/BasicInfo/index.tsx | 464 +++++++-------- 3 files changed, 529 insertions(+), 523 deletions(-) diff --git a/src/stores/slices/basic/interfaces/index.ts b/src/stores/slices/basic/interfaces/index.ts index 68653c3..e89f076 100644 --- a/src/stores/slices/basic/interfaces/index.ts +++ b/src/stores/slices/basic/interfaces/index.ts @@ -1,29 +1,29 @@ export type IProfiles = { - network: string; - username: string; - url: string; - color?: string; - template?: string[]; + network: string; + username: string; + url: string; + color?: string; + template?: string[]; }; type ILocation = { - city: string; + city: string; }; export interface BasicInfo { - profileImage?: string; - name: string; - label: string; - image: string; - intro: string; - email: string; - phone: string; - url: string; - location: ILocation; - profiles: IProfiles[]; + profileImage?: string; + name: string; + label: string; + image: string; + intro: string; + email: string; + phone: string; + url: string; + location: ILocation; + profiles: IProfiles[]; } export interface IBasicDetailsStore { - values: BasicInfo; - reset: (values: BasicInfo) => void; + values: BasicInfo; + reset: (values: BasicInfo) => void; } diff --git a/src/templates/Spectrum/index.tsx b/src/templates/Spectrum/index.tsx index 6650d7f..40d6f73 100644 --- a/src/templates/Spectrum/index.tsx +++ b/src/templates/Spectrum/index.tsx @@ -15,303 +15,305 @@ import { Education } from "@/stores/slices/education/interfaces"; import { selectSkills } from "@/stores/slices/skills/skillSlice"; const Spectrum = () => { - const basicInfo = useAppSelector(selectBasicInfo); - const experiences = useAppSelector(selectExperience); - const education = useAppSelector(selectEducation); - const skills = useAppSelector(selectSkills); + const basicInfo = useAppSelector(selectBasicInfo); + const experiences = useAppSelector(selectExperience); + const education = useAppSelector(selectEducation); + const skills = useAppSelector(selectSkills); - const filteredProfiles = basicInfo.profiles.filter( - (profile) => profile.network !== "Website" - ); + const filteredProfiles = basicInfo.profiles.filter( + (profile) => profile.network !== "Website", + ); - const getWebsiteProfile = basicInfo.profiles.filter( - (profile) => profile.network === "Website" - ); + const getWebsiteProfile = basicInfo.profiles.filter( + (profile) => profile.network === "Website", + ); - const frontendSkills = skills[0]?.frontendRelated; - const backendSkills = skills[0]?.backendRelated; + const frontendSkills = skills[0]?.frontendRelated; + const backendSkills = skills[0]?.backendRelated; - return ( -
- {basicInfo.intro} -
-+ {basicInfo.intro} +
+- {responsibility.responsibility} -
- ); - })} -+ {responsibility.responsibility} +
+ ); + })} +{value}
- ) : ( - - {username} - - )} -{value}
+ ) : ( + + {username} + + )} +