optimize CardModal.tsx

5 jobs for opt/card_modal in 16 minutes and 14 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Install
passed #86348
linux
npm_ci

00:04:01

 
  Rs Check Lint
passed #86349
linux
rs_check_lint

00:03:20

 
  Wasm
passed #86350
linux
wasm_build

00:06:56

 
  Ts Check Lint
passed #86351
linux
ts_check_lint

00:00:45

 
  Build
passed #86352
linux
npm_build

00:01:10