mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 23:44:11 +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 (
|
||||
<SC.StyledResourceList>
|
||||
{items.map((item) => (
|
||||
<SC.Resource
|
||||
<SC.PageLink
|
||||
key={item.title}
|
||||
to={getPath(item)}
|
||||
className={current === item.title ? "active" : ""}
|
||||
onClick={() => {
|
||||
setCurrent(item.title)
|
||||
@@ -169,7 +170,7 @@ const ResourceList: FC<{
|
||||
}}
|
||||
>
|
||||
{item.title}
|
||||
</SC.Resource>
|
||||
</SC.PageLink>
|
||||
))}
|
||||
</SC.StyledResourceList>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user