mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat: validate before move to full and partial transactions locking.
This commit is contained in:
13
src/components/Utils/Join.js
Normal file
13
src/components/Utils/Join.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import React from 'react';
|
||||
|
||||
export function Join({ items, sep }) {
|
||||
return items.length > 0
|
||||
? items.reduce((result, item) => (
|
||||
<>
|
||||
{result}
|
||||
{sep}
|
||||
{item}
|
||||
</>
|
||||
))
|
||||
: null;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
|
||||
|
||||
export * from './FormatNumber';
|
||||
export * from './FormatDate';
|
||||
export * from './FormatDate';
|
||||
export * from './Join';
|
||||
Reference in New Issue
Block a user