Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions components/Admin/RegisteredUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ export default function RegisteredUsers ({ users }: IProps): JSX.Element {
)
},
{
Header: 'Admin',
Header: () => (<div className="text-center">Admin</div>),
accessor: 'isAdmin',
Cell: ({ cell }: CellProps<UserWithSupertokens>) => (
cell.value === true ? <span className={style.admin}>Yes</span> : 'No'
<div className="text-center">
{cell.value === true ? <span className={style.admin}>Yes</span> : 'No'}
</div>
)
}
]
Expand Down
2 changes: 1 addition & 1 deletion components/Admin/SubscribedAddresses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function SubscribedAddresses (): JSX.Element {
}
},
{
Header: 'View',
Header: () => (<div className="text-center">View</div>),
accessor: 'view',
Cell: (cellProps: any) => {
return <a href={`https://explorer.e.cash/address/${cellProps.cell.row.values.address as string}`} target="_blank" rel="noopener noreferrer" className="table-eye-ctn">
Expand Down
4 changes: 2 additions & 2 deletions components/Dashboard/Leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default ({ buttons, totalString, currencyId }: IProps): JSX.Element => {
}
},
{
Header: () => (<div style={{ textAlign: 'right' }}>{totalString} Revenue</div>),
Header: () => (<div className="text-right">{totalString} Revenue</div>),
accessor: totalRevenueAcessor,
id: 'revenue',
sortType: compareNumericString,
Expand All @@ -46,7 +46,7 @@ export default ({ buttons, totalString, currencyId }: IProps): JSX.Element => {
}
},
{
Header: () => (<div style={{ textAlign: 'right' }}>{totalString} Payments</div>),
Header: () => (<div className="text-right">{totalString} Payments</div>),
accessor: 'total.payments',
Cell: (cellProps) => {
return <div style={{ textAlign: 'right', fontWeight: '600' }}>{cellProps.cell.value}</div>
Expand Down
6 changes: 3 additions & 3 deletions components/Transaction/PaybuttonTransactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default ({ paybuttonId, addressSyncing, tableRefreshCount, timezone = mom
}
},
{
Header: () => (<div style={{ textAlign: 'right' }}>Amount</div>),
Header: () => (<div className="text-right">Amount</div>),
accessor: 'amount',
sortType: compareNumericString,
Cell: (cellProps) => {
Expand All @@ -100,7 +100,7 @@ export default ({ paybuttonId, addressSyncing, tableRefreshCount, timezone = mom
}
},
{
Header: () => (<div style={{ textAlign: 'center' }}>Network</div>),
Header: () => (<div className="text-center">Network</div>),
accessor: 'address.networkId',
Cell: (cellProps) => {
return (
Expand All @@ -113,7 +113,7 @@ export default ({ paybuttonId, addressSyncing, tableRefreshCount, timezone = mom
}
},
{
Header: () => (<div style={{ textAlign: 'center' }}>TX</div>),
Header: () => (<div className="text-center">TX</div>),
accessor: 'hash',
disableSortBy: true,
Cell: (cellProps) => {
Expand Down
12 changes: 6 additions & 6 deletions pages/payments/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export default function Payments ({ user, userId, organization }: PaybuttonsProp
}
},
{
Header: () => (<div style={{ textAlign: 'right' }}>Amount</div>),
Header: () => (<div className="text-right">Amount</div>),
accessor: 'amount',
sortType: compareNumericString,
Cell: (cellProps) => {
Expand All @@ -280,7 +280,7 @@ export default function Payments ({ user, userId, organization }: PaybuttonsProp
}
},
{
Header: () => (<div style={{ textAlign: 'right' }}>Value</div>),
Header: () => (<div className="text-right">Value</div>),
accessor: 'values',
sortType: compareNumericString,
disableSortBy: true,
Expand All @@ -289,7 +289,7 @@ export default function Payments ({ user, userId, organization }: PaybuttonsProp
}
},
{
Header: () => (<div style={{ textAlign: 'center' }}>Network</div>),
Header: () => (<div className="text-center">Network</div>),
accessor: 'networkId',
Cell: (cellProps) => {
return (
Expand All @@ -302,7 +302,7 @@ export default function Payments ({ user, userId, organization }: PaybuttonsProp
}
},
{
Header: () => (<div style={{ textAlign: 'center' }}>Buttons</div>),
Header: () => (<div className="text-center">Buttons</div>),
accessor: 'buttonDisplayDataList',
Cell: (cellProps) => {
return (
Expand All @@ -321,7 +321,7 @@ export default function Payments ({ user, userId, organization }: PaybuttonsProp
}
},
{
Header: 'TX',
Header: () => (<div className="text-center">TX</div>),
accessor: 'hash',
disableSortBy: true,
Cell: (cellProps) => {
Expand All @@ -336,7 +336,7 @@ export default function Payments ({ user, userId, organization }: PaybuttonsProp
}
},
{
Header: () => (<div style={{ textAlign: 'center' }}>Invoice</div>),
Header: () => (<div className="text-center">Invoice</div>),
id: 'actions',
disableSortBy: true,
Cell: (cellProps) => {
Expand Down
12 changes: 12 additions & 0 deletions styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,18 @@ button:enabled:hover {
transform: rotate(180deg);
}

.text-left {
text-align: left;
}

.text-center {
text-align: center;
}

.text-right {
text-align: right;
}

.table-icon-ctn {
width: 100%;
display: flex;
Expand Down