Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions src/features/sync/components/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ const MappingTableStatus = ({
)
}

const MappingTableNoRecords = () => {
return (
<tr>
<td colSpan={5} className="py-12">
<div className="flex items-center justify-center">
<div className="text-sm">
Start by adding a mapping between an Assembly file channel and a Dropbox folder.
</div>
</div>
</td>
</tr>
)
}

const MappingTableRow = () => {
const {
handleSyncStatusChange,
Expand All @@ -56,7 +70,7 @@ const MappingTableRow = () => {

return (
<>
{!!tempMapList.length &&
{tempMapList.length ? (
tempMapList.map((mapItem, index) => (
<tr key={`${generateRandomString(8)}-${index}`}>
<td className="w-80 whitespace-nowrap px-6 py-2">
Expand Down Expand Up @@ -140,7 +154,10 @@ const MappingTableRow = () => {
)}
</td>
</tr>
))}
))
) : (
<MappingTableNoRecords />
)}
</>
)
}
Expand Down