Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chart Placeholder #39

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions packages/trader/src/AppV2/Containers/Chart/chart-placeholder.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Text } from '@deriv-com/quill-ui';
import React from 'react';

const ChartPlaceholder = () => {
return (
<div className='chart-placeholder'>
<Text className='placeholder-text' size='sm' centered>
Placeholder Chart
</Text>
</div>
);
};

export default ChartPlaceholder;
13 changes: 13 additions & 0 deletions packages/trader/src/AppV2/Containers/Chart/chart.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.chart-placeholder {
height: 360px;
margin: 0.5rem;
background-color: var(--core-color-solid-grape-100);
border: 1px dashed var(--core-color-solid-grape-700);
.placeholder-text {
height: 100%;
display: flex;
flex-direction: column;
color: var(--core-color-solid-grape-700);
justify-content: center;
}
}
4 changes: 4 additions & 0 deletions packages/trader/src/AppV2/Containers/Chart/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import ChartPlaceholder from './chart-placeholder';
import './chart.scss';

export default ChartPlaceholder;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
background-color: rgba(0, 0, 0, 0.48);
}
.placeholder {
height: 100px;
min-height: 100px;
margin: 4px 8px;
background-color: #fff;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { Text } from '@deriv-com/quill-ui';
import ChartPlaceholder from '../Chart';

const ContractDetails = () => {
return (
Expand All @@ -14,7 +15,7 @@ const ContractDetails = () => {
<Text size='sm'>Contract card</Text>
</div>
<div className='placeholder'>
<Text size='sm'>Chart placeholder</Text>
<ChartPlaceholder />
</div>
<div className='placeholder'>
<Text size='sm'>Take profit</Text>
Expand Down
Loading