chore: some small fixes and native deps config
This commit is contained in:
parent
465dd5af7c
commit
e84490bbca
11 changed files with 146 additions and 3646 deletions
|
|
@ -55,7 +55,6 @@
|
|||
"vitest": "^3.1.4"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
import IconButton from '@mui/material/IconButton'
|
||||
import Tooltip from '@mui/material/Tooltip'
|
||||
import Visibility from '@mui/icons-material/Visibility'
|
||||
import { format } from 'date-fns/fp'
|
||||
import * as R from 'ramda'
|
||||
import React, { useMemo } from 'react'
|
||||
import { MaterialReactTable, useMaterialReactTable } from 'material-react-table'
|
||||
import {
|
||||
MaterialReactTable,
|
||||
MRT_ActionMenuItem,
|
||||
useMaterialReactTable,
|
||||
} from 'material-react-table'
|
||||
import { MainStatus } from '../../components/Status'
|
||||
import TxInIcon from '../../styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from '../../styling/icons/direction/cash-out.svg?react'
|
||||
|
|
@ -120,16 +122,15 @@ const CustomersList = ({ data, country, onClick, loading }) => {
|
|||
state: { isLoading: loading },
|
||||
getRowId: it => it.id,
|
||||
enableRowActions: true,
|
||||
positionActionsColumn: 'last',
|
||||
renderRowActions: ({ row }) => (
|
||||
<div>
|
||||
<Tooltip title="Customer page">
|
||||
<IconButton aria-label="Go to customer" onClick={() => onClick(row)}>
|
||||
<Visibility />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</div>
|
||||
),
|
||||
renderRowActionMenuItems: ({ row }) => [
|
||||
<MRT_ActionMenuItem //or just use a normal MUI MenuItem component
|
||||
icon={<Visibility />}
|
||||
key="view"
|
||||
label="View"
|
||||
onClick={() => onClick(row)}
|
||||
table={table}
|
||||
/>,
|
||||
],
|
||||
})
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -86,9 +86,9 @@
|
|||
"serve-static": "^1.12.4",
|
||||
"talisman": "^0.20.0",
|
||||
"telnyx": "^1.25.5",
|
||||
"typesafe-db": "workspace:*",
|
||||
"tronweb": "^5.3.0",
|
||||
"twilio": "^3.6.1",
|
||||
"typesafe-db": "workspace:*",
|
||||
"uuid": "8.3.2",
|
||||
"web3": "1.7.1",
|
||||
"winston": "^2.4.2",
|
||||
|
|
@ -126,32 +126,12 @@
|
|||
"lamassu-clean-parsed-id": "./bin/lamassu-clean-parsed-id"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "echo 'Server requires no build step'",
|
||||
"start": "node bin/lamassu-server",
|
||||
"dev": "concurrently \"npm:server\" \"npm:admin-server\"",
|
||||
"jtest": "jest --detectOpenHandles",
|
||||
"build-admin": "npm run build-admin:css && npm run build-admin:main && npm run build-admin:lamassu",
|
||||
"server": "nodemon bin/lamassu-server --mockScoring --logLevel silly",
|
||||
"admin-server": "nodemon bin/lamassu-admin-server --dev --logLevel silly",
|
||||
"watch": "concurrently \"npm:server\" \"npm:admin-server\"",
|
||||
"server": "node bin/lamassu-server --mockScoring --logLevel silly --watch",
|
||||
"admin-server": "node bin/lamassu-admin-server --dev --logLevel silly --watch",
|
||||
"stress-test": "cd tests/stress/ && node index.js 50 -v"
|
||||
},
|
||||
"nodemonConfig": {
|
||||
"ignore": [
|
||||
"new-lamassu-admin/*"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"concurrently": "^5.3.0",
|
||||
"jest": "^26.6.3",
|
||||
"nodemon": "^2.0.6",
|
||||
"standard": "^12.0.1"
|
||||
},
|
||||
"standard": {
|
||||
"ignore": [
|
||||
"/lamassu-admin-elm",
|
||||
"/public",
|
||||
"/new-lamassu-admin"
|
||||
]
|
||||
"concurrently": "^5.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
},
|
||||
"scripts": {
|
||||
"build": "tsc --build",
|
||||
"start": "tsc --watch",
|
||||
"dev": "tsc --watch",
|
||||
"generate-types": "kysely-codegen --camel-case --out-file ./src/types/types.d.ts",
|
||||
"postinstall": "npm run build"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue