-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(PE-7274): funding source #636
Conversation
Visit the preview URL for this PR (updated for commit 95b8cde): https://arns-portal--pr636-pe-7274-funding-sour-i6l72crv.web.app (expires Tue, 21 Jan 2025 14:41:56 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 1f59769442cb89cf2a92042a342e51fe94047b94 |
import type { StorybookConfig } from '@storybook/react-vite'; | ||
|
||
const config: StorybookConfig = { | ||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], | ||
|
||
addons: [ | ||
'@storybook/addon-onboarding', | ||
'@storybook/addon-essentials', | ||
'@chromatic-com/storybook', | ||
'@storybook/addon-interactions', | ||
], | ||
|
||
framework: { | ||
name: '@storybook/react-vite', | ||
options: {}, | ||
}, | ||
|
||
typescript: { | ||
reactDocgen: 'react-docgen-typescript', | ||
}, | ||
}; | ||
export default config; |
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.
will always be my rec to introduce new tools in separate and isolated PRs
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.
I will endeavour to do so in the future.
}; | ||
|
||
export function formatARIOWithCommas(ario: number) { | ||
return ario.toLocaleString('en-US', { |
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.
Seems odd/inconsistent we have two functions for formatting ARIO values, one with 3 digits and one with 2.
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.
Well its for different circumstances, one is long form one is short form. In this context we have a dropdown that we want to represent the numbers as compact as possible, and we have a larger area we want to display the numbers long form.
const [record, setRecord] = useState<AoArNSNameData>(); | ||
const [antContract, setAntContract] = useState<ANT>(); | ||
const [undernameCount, setUndernameCount] = useState<number>(0); | ||
// const [record, setRecord] = useState<AoArNSNameData>(); |
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.
Remove dead code
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.
No description provided.