Skip to content

Commit

Permalink
convert React Payment component to TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo Cherblanc authored and Lucanis committed Jan 17, 2024
1 parent 54811fb commit b3ddf44
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
10 changes: 10 additions & 0 deletions templates/frontOffice/modern/components/React/Payment/Payment.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import Title from '../Title';
import { useIntl } from 'react-intl';
import { PaymentProps } from './Payment.types';

export default function Payment({ checkout = {} }: PaymentProps) {
const intl = useIntl();

return <Title title={intl.formatMessage({ id: 'PAYMENT_MODE' })} />;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export type PaymentProps = {
checkout: any;
};

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './Payment';

0 comments on commit b3ddf44

Please sign in to comment.