mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-07 16:06:12 +02:00
Merge pull request #358 from dfireBird/fix-274
Open resource intro on selecting
This commit is contained in:
@@ -160,8 +160,9 @@ const ResourceList: FC<{
|
|||||||
return (
|
return (
|
||||||
<SC.StyledResourceList>
|
<SC.StyledResourceList>
|
||||||
{items.map((item) => (
|
{items.map((item) => (
|
||||||
<SC.Resource
|
<SC.PageLink
|
||||||
key={item.title}
|
key={item.title}
|
||||||
|
to={getPath(item)}
|
||||||
className={current === item.title ? "active" : ""}
|
className={current === item.title ? "active" : ""}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setCurrent(item.title)
|
setCurrent(item.title)
|
||||||
@@ -169,7 +170,7 @@ const ResourceList: FC<{
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{item.title}
|
{item.title}
|
||||||
</SC.Resource>
|
</SC.PageLink>
|
||||||
))}
|
))}
|
||||||
</SC.StyledResourceList>
|
</SC.StyledResourceList>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user