-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Maintenance: BudgetSummary & CreateLocalAccount to tsx #1768
Maintenance: BudgetSummary & CreateLocalAccount to tsx #1768
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -26,7 +33,7 @@ function CreateLocalAccount({ modalProps, actions }) { | |||
let validateBalance = balance => !isNaN(parseFloat(balance)); | |||
|
|||
return ( | |||
<Modal title="Create Local Account" {...modalProps} showBack={false}> |
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.
Bundle Stats — desktop-clientHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller
Unchanged
|
Bundle Stats — loot-coreHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset No files were changed View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
@@ -8,7 +8,7 @@ type InlineFieldProps = { | |||
label: ReactNode; | |||
labelWidth?: number; | |||
children?: ReactNode; | |||
width: number; | |||
width: number | string; |
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.
width is being used as a string like:
width: '75%'
numbers are also valid. width: 100 would mean 100px
|
||
return ( | ||
<Modal title="Budget Details" {...modalProps} animate> | ||
<Modal title="Budget Details" {...modalProps}> |
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.
@@ -1,9 +1,10 @@ | |||
import React from 'react'; | |||
|
|||
import { rolloverBudget } from 'loot-core/src/client/queries'; | |||
import * as monthUtils from 'loot-core/src/shared/months'; |
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.
Only importing what's needed
@@ -164,7 +164,7 @@ type SingleAutocompleteProps = { | |||
openOnFocus?: boolean; | |||
getHighlightedIndex?: (suggestions) => number | null; | |||
highlightFirst?: boolean; | |||
onUpdate: (id: unknown, value: string) => void; | |||
onUpdate?: (id: unknown, value: string) => void; |
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.
This is optional - it's rarely specified - found it when looking in another area.
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.
Thanks! Very easy to review 👏
Convert BudgetSummary modal(mobile) and CreateLocalAccounts components to TypeScript.
Relates to : #1483