mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-26 11:38:37 +00:00
Apply prettier formatting
This commit is contained in:
@@ -25,9 +25,7 @@ import React from "react";
|
||||
export function jsxJoin(array: Array<string | JSX.Element>, joiner?: string | JSX.Element): JSX.Element {
|
||||
const newArray = [];
|
||||
array.forEach((element, index) => {
|
||||
newArray.push(element, (index === array.length - 1) ? null : joiner);
|
||||
newArray.push(element, index === array.length - 1 ? null : joiner);
|
||||
});
|
||||
return (
|
||||
<span>{ newArray }</span>
|
||||
);
|
||||
return <span>{newArray}</span>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user