website refactor
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { LeagueWalletViewData } from '@/lib/view-data/leagues/LeagueWalletViewData';
|
||||
import { LeagueWalletApiDto } from '@/lib/types/tbd/LeagueWalletApiDto';
|
||||
|
||||
export class LeagueWalletViewDataBuilder {
|
||||
static build(apiDto: LeagueWalletApiDto): LeagueWalletViewData {
|
||||
return {
|
||||
leagueId: apiDto.leagueId,
|
||||
balance: apiDto.balance,
|
||||
currency: apiDto.currency,
|
||||
transactions: apiDto.transactions,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user