Skip to content

Commit

Permalink
Merge remote-tracking branch 'nicola/refactor-functional-chart-III'
Browse files Browse the repository at this point in the history
  • Loading branch information
thisconnect committed Sep 21, 2024
2 parents a99fbae + 119ca26 commit d9f747c
Show file tree
Hide file tree
Showing 2 changed files with 443 additions and 483 deletions.
8 changes: 7 additions & 1 deletion frontends/web/src/api/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

import type { LineData } from 'lightweight-charts';
import { apiGet, apiPost } from '@/utils/request';
import type { ChartData } from '@/routes/account/summary/chart';
import type { TDetailStatus } from './bitsurance';
import type { SuccessResponse } from './response';
import { Slip24 } from 'request-address';
Expand Down Expand Up @@ -186,6 +186,12 @@ export const init = (code: AccountCode): Promise<null> => {
return apiPost(`account/${code}/init`);
};

export type FormattedLineData = LineData & {
formattedValue: string;
};

export type ChartData = FormattedLineData[];

export type TSummaryResponse = {
success: true;
data: TSummary;
Expand Down
Loading

0 comments on commit d9f747c

Please sign in to comment.