-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: move BalanceSummaryRow out of atoms and refactor * refactor: move BalanceSummarySection out of atoms and cleanup * fix: update imports * fix: update classes * fix: avoid tpye assertions * fix: remove on:keydown
- Loading branch information
1 parent
b7c265c
commit f34d285
Showing
5 changed files
with
54 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<script lang="ts"> | ||
import { FontWeight, Text } from 'shared/components' | ||
export let title: string | ||
export let subtitle: string | undefined = undefined | ||
export let bold: boolean = false | ||
export let amount: string | ||
export let convertedAmount: string | ||
const PRIMARY_TEXT_CONFIG = { | ||
color: 'gray-800', | ||
darkColor: 'white', | ||
fontSize: '15', | ||
fontWeight: bold ? FontWeight.semibold : FontWeight.normal, | ||
lineHeight: '5', | ||
} | ||
const SECONDARY_TEXT_CONFIG = { | ||
color: 'gray-600', | ||
darkColor: 'gray-400', | ||
fontSize: '13', | ||
fontWeight: FontWeight.normal, | ||
lineHeight: '4', | ||
} | ||
</script> | ||
|
||
<div class="flex flex-row justify-between flex-grow"> | ||
<div class={title ? 'flex flex-col space-y-0.5' : null}> | ||
<Text {...PRIMARY_TEXT_CONFIG}>{title}</Text> | ||
{#if subtitle} | ||
<Text {...SECONDARY_TEXT_CONFIG}>{subtitle}</Text> | ||
{/if} | ||
</div> | ||
<div class="flex flex-col items-end space-y-0.5"> | ||
<Text {...PRIMARY_TEXT_CONFIG} classes="text-right">{amount}</Text> | ||
<Text {...SECONDARY_TEXT_CONFIG} classes="text-right">{convertedAmount}</Text> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters