Skip to content

Commit dedd8dd

Browse files
dunglasmysiar
authored andcommitted
[react] Replace span by div in link lists (#48)
1 parent 7c9a56d commit dedd8dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/react/utils/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ export function itemToLinks(items) {
88

99
function createLink(item) {
1010
if ('string' !== typeof(item) || !item.includes(API_PATH)) {
11-
return <span key={item}>{item}<br/></span>;
11+
return <div key={item}>{item}</div>;
1212
}
1313

1414
const routeWithoutPrefix = item.replace(API_PATH, '');
1515
const splittedRoute = routeWithoutPrefix.split('/');
1616
const route = '/' === routeWithoutPrefix[0] ? splittedRoute[1] : splittedRoute[0];
1717

18-
return <span><Link key={item} to={`/${route}/show/${encodeURIComponent(item)}`}>{item}</Link><br/></span>;
18+
return <div><Link key={item} to={`/${route}/show/${encodeURIComponent(item)}`}>{item}</Link></div>;
1919
}
2020

2121
export function paginationRoute(item) {

0 commit comments

Comments
 (0)