mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2024-11-22 05:25:13 +01:00
fix(custom buttons): move order prop to parent div
This commit is contained in:
parent
518fa85aac
commit
f60914d5e4
@ -65,7 +65,7 @@ function Home(props) {
|
||||
return texts.map((t, i) => {
|
||||
// do not try to render button unless it has all of the required props
|
||||
return (
|
||||
<React.Fragment key={i}>
|
||||
<div key={i} order={buttonOrder(names[i]?.trim())}>
|
||||
{names &&
|
||||
names[i] &&
|
||||
urls &&
|
||||
@ -86,11 +86,10 @@ function Home(props) {
|
||||
backgroundColor: buttonColors[i]?.trim(),
|
||||
color: textColors[i].trim(),
|
||||
}}
|
||||
order={buttonOrder(names[i]?.trim())}
|
||||
alt={altTexts[i]?.trim()}
|
||||
/>
|
||||
)}
|
||||
</React.Fragment>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user