Skip to content

Commit

Permalink
chore: UI fix audit (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitanjli525 authored May 29, 2024
1 parent ebb611a commit 778839a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/DateRangeField.res
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ module Base = {
: showTime
? `${startDateStr} ${startTimeStr} - ${endDateStr} ${endTimeStr}`
: endDateVal->isEmptyString
? `${startDateStr}`
? `${startDateStr} - Now`
: `${startDateStr} ${startDateStr === buttonText ? "" : "-"} ${endDateStr}`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ let make = (~setAuthType) => {
}

<EmailVerifyScreen
errorMessage onClick trasitionMessage="Verifing... You will be redirecting.."
errorMessage onClick trasitionMessage="Verifying... You will be redirecting.."
/>
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ let make = () => {
}

<EmailVerifyScreen
errorMessage onClick trasitionMessage="Verifing... You will be redirecting.."
errorMessage onClick trasitionMessage="Verifying... You will be redirecting.."
/>
}
3 changes: 3 additions & 0 deletions src/screens/Analytics/Logs/LogUtils/AuditLogUI.res
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ let make = (~id, ~urls, ~logType: LogTypes.pageType) => {
open OrderUtils
<PageLoaderWrapper
screenState
customLoader={<p className=" text-center text-sm text-jp-gray-900">
{"Crunching the latest data…"->React.string}
</p>}
customUI={<NoDataFound
message={`No logs available for this ${(logType :> string)->String.toLowerCase}`}
/>}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ open SwitchMerchantUtils
type columns =
| MerchantName
| RoleName
| MerchantId

let visibleColumns = [MerchantName, RoleName]
let visibleColumns = [MerchantId, MerchantName, RoleName]

let defaultColumns = [MerchantName, RoleName]
let defaultColumns = [MerchantId, MerchantName, RoleName]

let allColumns = [MerchantName, RoleName]
let allColumns = [MerchantId, MerchantName, RoleName]

let itemToObjMapper = dict => {
open LogicUtils
Expand All @@ -28,6 +29,7 @@ let getHeading = colType => {
switch colType {
| MerchantName => Table.makeHeaderInfo(~key="merchant_name", ~title="Merchant Name", ())
| RoleName => Table.makeHeaderInfo(~key="role", ~title="Role", ())
| MerchantId => Table.makeHeaderInfo(~key="merchant id", ~title="Merchant Id", ())
}
}

Expand All @@ -42,6 +44,7 @@ let getCell = (item: switchMerchantListResponse, colType): Table.cell => {
</div>,
"",
)
| MerchantId => Text(item.merchant_id)
}
}

Expand Down

0 comments on commit 778839a

Please sign in to comment.