Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 35 additions & 13 deletions src/components/organisms/HomePanel/HomePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,25 @@ const HomePanel = ({
style={{ width: 48, height: 48 }}
></div>
) : (
<Image
src={`/icons/${
darkMode ? 'dark' : 'light'
}/add-skill.svg`}
alt={'add'}
width="48"
height="48"
/>
<Link
href={{
pathname: `/skills/${context}/${name}`,
query: !data.length &&
context === 'mine' && {
add: true,
},
}}
className={`flex flex-auto flex-row justify-center w-4/5 cursor-pointer`}
>
<Image
src={`/icons/${
darkMode ? 'dark' : 'light'
}/add-skill.svg`}
alt={'add'}
width="48"
height="48"
/>
</Link>
)}
</div>
)}
Expand Down Expand Up @@ -224,11 +235,22 @@ const HomePanel = ({
</div>
) : (
<div className="flex flex-auto flex-row justify-center py-4 px-2 order-6 h-1/3">
<p className="text-center">
{context !== 'mine'
? t('home.noSkill')
: t('home.addSkill')}
</p>
<Link
href={{
pathname: `/skills/${context}/${name}`,
query: !data.length &&
context === 'mine' && {
add: true,
},
}}
className={`cursor-pointer`}
>
<p className="text-center">
{context !== 'mine'
? t('home.noSkill')
: t('home.addSkill')}
</p>
</Link>
</div>
)}
<div
Expand Down
1 change: 1 addition & 0 deletions src/components/organisms/charts/scatter/ScatterChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const SkillzScatterChart = ({
bottom: 20,
left: 20,
}}
style={{ cursor: 'pointer' }}
>
<CartesianGrid strokeDasharray="4 4" stroke={'#666'} />
<XAxis
Expand Down