diff --git a/components/JobSection/index.scss b/components/JobSection/index.scss index 83d72ec7..f6e20d20 100644 --- a/components/JobSection/index.scss +++ b/components/JobSection/index.scss @@ -12,6 +12,12 @@ flex-direction: column; width: 100%; + h3 { + font-size: $font-medium; + font-weight: $medium; + padding: $unit 0 $unit * 2; + } + select { flex-grow: 0; } diff --git a/components/JobSection/index.tsx b/components/JobSection/index.tsx index d026eb00..c372b211 100644 --- a/components/JobSection/index.tsx +++ b/components/JobSection/index.tsx @@ -1,6 +1,7 @@ import React, { ForwardedRef, useEffect, useState } from "react" -import { useTranslation } from "next-i18next" +import { useRouter } from "next/router" import { useSnapshot } from "valtio" +import { useTranslation } from "next-i18next" import JobDropdown from "~components/JobDropdown" import JobSkillItem from "~components/JobSkillItem" @@ -25,6 +26,10 @@ const JobSection = (props: Props) => { const { party } = useSnapshot(appState) const { t } = useTranslation("common") + const router = useRouter() + const locale = + router.locale && ["en", "ja"].includes(router.locale) ? router.locale : "en" + const [job, setJob] = useState() const [imageUrl, setImageUrl] = useState("") const [numSkills, setNumSkills] = useState(4) @@ -132,11 +137,16 @@ const JobSection = (props: Props) => {
- + {props.editable ? ( + + ) : ( +

{party.job?.name[locale]}

+ )} +
    {[...Array(numSkills)].map((e, i) => (