-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add tooltip to pools and refactor loans tooltip (#1424)
* feat: add tooltip to pools and refactor loans tooltip * fix: code review * fix: code reivew --------- Co-authored-by: Thomas Jeatt <[email protected]>
- Loading branch information
1 parent
79ac979
commit 5c6a8df
Showing
23 changed files
with
305 additions
and
292 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
File renamed without changes.
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,10 @@ | ||
import { Dl, DlProps } from '@/component-library'; | ||
|
||
type ApyDetailsProps = DlProps; | ||
|
||
const ApyDetails = ({ direction = 'column', gap = 'spacing2', ...props }: ApyDetailsProps): JSX.Element => { | ||
return <Dl direction={direction} gap={gap} {...props} />; | ||
}; | ||
|
||
export { ApyDetails }; | ||
export type { ApyDetailsProps }; |
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,34 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
import { Dd, Dl, DlGroup, DlGroupProps, Dt } from '@/component-library'; | ||
|
||
type Props = { | ||
title: ReactNode; | ||
}; | ||
|
||
type InheritAttrs = Omit<DlGroupProps, keyof Props>; | ||
|
||
type ApyDetailsGroupProps = Props & InheritAttrs; | ||
|
||
const ApyDetailsGroup = ({ | ||
direction = 'column', | ||
gap = 'spacing1', | ||
alignItems = 'flex-start', | ||
title, | ||
children, | ||
...props | ||
}: ApyDetailsGroupProps): JSX.Element => ( | ||
<DlGroup direction={direction} gap={gap} alignItems={alignItems} {...props}> | ||
<Dt weight='bold' color='primary'> | ||
{title} | ||
</Dt> | ||
<Dd> | ||
<Dl direction='column' alignItems='flex-start' gap='spacing0'> | ||
{children} | ||
</Dl> | ||
</Dd> | ||
</DlGroup> | ||
); | ||
|
||
export { ApyDetailsGroup }; | ||
export type { ApyDetailsGroupProps }; |
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,32 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
import { Dd, DlGroup, DlGroupProps, Dt } from '@/component-library'; | ||
|
||
type Props = { | ||
label: ReactNode; | ||
value: ReactNode; | ||
}; | ||
|
||
type InheritAttrs = Omit<DlGroupProps, keyof Props | 'children'>; | ||
|
||
type ApyDetailsGroupItemProps = Props & InheritAttrs; | ||
|
||
const ApyDetailsGroupItem = ({ | ||
gap = 'spacing1', | ||
wrap = 'wrap', | ||
label, | ||
value, | ||
...props | ||
}: ApyDetailsGroupItemProps): JSX.Element => ( | ||
<DlGroup wrap={wrap} gap={gap} {...props}> | ||
<Dd weight='medium' color='tertiary'> | ||
{label}: | ||
</Dd> | ||
<Dt weight='medium' color='primary'> | ||
{value} | ||
</Dt> | ||
</DlGroup> | ||
); | ||
|
||
export { ApyDetailsGroupItem }; | ||
export type { ApyDetailsGroupItemProps }; |
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,6 @@ | ||
export type { ApyDetailsProps } from './ApyDetails'; | ||
export { ApyDetails } from './ApyDetails'; | ||
export type { ApyDetailsGroupProps } from './ApyDetailsGroup'; | ||
export { ApyDetailsGroup } from './ApyDetailsGroup'; | ||
export type { ApyDetailsGroupItemProps } from './ApyDetailsGroupItem'; | ||
export { ApyDetailsGroupItem } from './ApyDetailsGroupItem'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
5c6a8df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
interbtc-ui-kintsugi-testnet – ./
interbtc-ui-kintsugi-testnet-interlay.vercel.app
interbtc-ui.vercel.app
kintnet.interlay.io
interbtc-ui-kintsugi-testnet-git-master-interlay.vercel.app
5c6a8df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
interbtc-ui-interlay-testnet – ./
interbtc-ui-interlay-testnet-interlay.vercel.app
interbtc-ui-interlay-testnet.vercel.app
interbtc-ui-interlay-testnet-git-master-interlay.vercel.app
testnet.interlay.io