Skip to content

Commit

Permalink
Merge pull request #43 from ahmadtaimoor-deriv/f_contract_details
Browse files Browse the repository at this point in the history
Ahmad/Card Wrapper
  • Loading branch information
akmal-deriv authored May 21, 2024
2 parents 98b38b4 + 0d02466 commit 5587368
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/trader/src/AppV2/Components/CardWrapper/card-wrapper.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.card-wrapper {
background-color: var(--core-color-solid-slate-50);
margin-top: 0.5rem;
padding: 1rem;
border-radius: 0.625rem;

.title {
margin-bottom: 1rem;
}
}
17 changes: 17 additions & 0 deletions packages/trader/src/AppV2/Components/CardWrapper/card-wrapper.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Text } from '@deriv-com/quill-ui';
import React from 'react';

const CardWrapper = ({ title, children }: { title?: string; children: React.ReactNode }) => {
return (
<div className='card-wrapper'>
{title && (
<Text size='sm' bold className='title'>
{title}
</Text>
)}
{children}
</div>
);
};

export default CardWrapper;
4 changes: 4 additions & 0 deletions packages/trader/src/AppV2/Components/CardWrapper/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import CardWrapper from './card-wrapper';
import './card-wrapper.scss';

export default CardWrapper;

0 comments on commit 5587368

Please sign in to comment.