Skip to content

Commit

Permalink
Merge pull request #71 from patryllus/format-expandable
Browse files Browse the repository at this point in the history
Formatted stock operations expandable to add space on  operation By a…
  • Loading branch information
makombe authored Jan 17, 2024
2 parents a7847c7 + 9097a74 commit 767b98f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/stock-items/stock-item.utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const addOrEditStockItem = async (
});

// Close overlay and open edit overlay
closeOverlay();
// closeOverlay();

if (!isEditing) {
closeOverlay();
Expand Down
6 changes: 6 additions & 0 deletions src/stock-operations/stock-operations-table.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@ const StockOperations: React.FC<StockOperationsTableProps> = () => {
{items[index]?.dateCreated
? formatDisplayDate(items[index]?.dateCreated)
: ""}
&nbsp;
{items[index]?.dateCreated ? "By" : ""}
&nbsp;
{items[index]?.dateCreated
? items[index]?.creatorFamilyName
: ""}
Expand All @@ -391,7 +393,9 @@ const StockOperations: React.FC<StockOperationsTableProps> = () => {
items[index]?.submittedDate
)
: ""}
&nbsp;
{items[index]?.submittedDate ? "By" : ""}
&nbsp;
{items[index]?.submittedDate
? items[index]?.creatorFamilyName
: ""}
Expand All @@ -402,7 +406,9 @@ const StockOperations: React.FC<StockOperationsTableProps> = () => {
items[index]?.completedDate
)
: ""}
&nbsp;
{items[index]?.completedDate ? "By" : ""}
&nbsp;
{items[index]?.completedDate
? items[index]?.creatorFamilyName
: ""}
Expand Down

0 comments on commit 767b98f

Please sign in to comment.