Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
actual-vt-capstone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danieljk
actual-vt-capstone
Commits
ba4885cb
Unverified
Commit
ba4885cb
authored
1 year ago
by
Joshua Krebs
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
refactor budget/IncomeHeader to tsx (#1670)
parent
a8a0f777
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/desktop-client/src/components/budget/IncomeHeader.tsx
+9
-2
9 additions, 2 deletions
...ges/desktop-client/src/components/budget/IncomeHeader.tsx
upcoming-release-notes/1670.md
+6
-0
6 additions, 0 deletions
upcoming-release-notes/1670.md
with
15 additions
and
2 deletions
packages/desktop-client/src/components/budget/IncomeHeader.
js
→
packages/desktop-client/src/components/budget/IncomeHeader.
tsx
+
9
−
2
View file @
ba4885cb
import
React
from
'
react
'
;
import
React
,
{
type
ReactNode
}
from
'
react
'
;
import
Button
from
'
../common/Button
'
;
import
View
from
'
../common/View
'
;
import
RenderMonths
from
'
./RenderMonths
'
;
function
IncomeHeader
({
MonthComponent
,
onShowNewGroup
})
{
type
IncomeHeaderProps
=
{
MonthComponent
?:
ReactNode
;
onShowNewGroup
:
()
=>
void
;
};
function
IncomeHeader
({
MonthComponent
,
onShowNewGroup
}:
IncomeHeaderProps
)
{
return
(
<
View
style
=
{
{
flexDirection
:
'
row
'
,
flex
:
1
}
}
>
<
View
...
...
@@ -22,6 +27,8 @@ function IncomeHeader({ MonthComponent, onShowNewGroup }) {
<
RenderMonths
component
=
{
MonthComponent
}
style
=
{
{
border
:
0
,
justifyContent
:
'
flex-end
'
}
}
editingIndex
=
{
undefined
}
args
=
{
undefined
}
/>
</
View
>
);
...
...
This diff is collapsed.
Click to expand it.
upcoming-release-notes/1670.md
0 → 100644
+
6
−
0
View file @
ba4885cb
---
category
:
Maintenance
authors
:
[
Jod929
]
---
Refactor budget/IncomeHeader to tsx
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment