-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve text styles for route book
- Loading branch information
Showing
3 changed files
with
49 additions
and
23 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 |
---|---|---|
@@ -1,15 +1,25 @@ | ||
import { Text } from '@penumbra-zone/ui/Text'; | ||
|
||
export interface OrderBookHeaderProps { | ||
base: string; | ||
quote: string; | ||
} | ||
|
||
export const RouteBookHeader = ({ base, quote }: OrderBookHeaderProps) => { | ||
return ( | ||
<div className='grid grid-cols-subgrid col-span-4 text-xs text-gray-400 px-4 border-b border-b-other-tonalStroke'> | ||
<div className='py-2 font-normal text-left'>Price({quote})</div> | ||
<div className='py-2 font-normal text-right'>Amount({base})</div> | ||
<div className='py-2 font-normal text-right'>Total</div> | ||
<div className='py-2 font-normal text-right'>Route</div> | ||
<div className='grid grid-cols-subgrid col-span-4 text-xs text-text-secondary px-4 border-b border-b-other-tonalStroke'> | ||
<div className='py-2 text-left'> | ||
<Text tableItemSmall>Price({quote})</Text> | ||
</div> | ||
<div className='py-2 text-right'> | ||
<Text tableItemSmall>Amount({base})</Text> | ||
</div> | ||
<div className='py-2 text-right'> | ||
<Text tableItemSmall>Total</Text> | ||
</div> | ||
<div className='py-2 text-right'> | ||
<Text tableItemSmall>Route</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 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