refactored card.ts into sep fn
refactored card.ts into sep fn

fr34k8/copay,msalcala11/copay,cmgustavo/copay,msalcala11/copay,fr34k8/copay,cmgustavo/copay,cmgustavo/copay,gabrielbazan7/copay,fr34k8/copay,msalcala11/copay,gabrielbazan7/copay,matiu/copay,fr34k8/copay,gabrielbazan7/copay,cmgustavo/copay,gabrielbazan7/copay,matiu/copay,matiu/copay,msalcala11/copay,matiu/copay