-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add informative tooltips (#449)
Co-authored-by: Lim SangHyun(Blue) <skqksh@gmail.com>
- Loading branch information
Showing
21 changed files
with
676 additions
and
84 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
56 changes: 56 additions & 0 deletions
56
...es/adena-extension/src/components/molecules/web-help-overlay/web-help-overlay.stories.tsx
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,56 @@ | ||
import React from 'react'; | ||
import WebHelpOverlay, { type WebHelpOverlayProps } from './web-help-overlay'; | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import { action } from '@storybook/addon-actions'; | ||
|
||
export default { | ||
title: 'components/molecules/WebHelpOverlay', | ||
component: WebHelpOverlay, | ||
} as Meta<typeof WebHelpOverlay>; | ||
|
||
export const Default: StoryObj<WebHelpOverlayProps> = { | ||
args: { | ||
items: [ | ||
{ | ||
x: 5, | ||
y: 5, | ||
tooltipInfo: { | ||
securityRate: 2, | ||
convenienceRate: 2, | ||
content: ( | ||
<> | ||
1. <b>Tooltip</b> | ||
</> | ||
), | ||
}, | ||
}, | ||
{ | ||
x: 15, | ||
y: 5, | ||
tooltipInfo: { | ||
securityRate: 2, | ||
convenienceRate: 2, | ||
content: ( | ||
<> | ||
2. <b>Tooltip</b> | ||
</> | ||
), | ||
}, | ||
}, | ||
{ | ||
x: 25, | ||
y: 5, | ||
tooltipInfo: { | ||
securityRate: 2, | ||
convenienceRate: 2, | ||
content: ( | ||
<> | ||
3. <b>Tooltip</b> | ||
</> | ||
), | ||
}, | ||
}, | ||
], | ||
onFinish: action('finish'), | ||
}, | ||
}; |
Oops, something went wrong.