-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added ExpenseItem story and removed store dependency
Change-Id: I5dc757a58eb322cac9337fea349b0f8271af1331
- Loading branch information
Showing
8 changed files
with
85 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@inkbeard/budget-it": minor | ||
--- | ||
|
||
- Moved ExpenseItem store logic to be props |
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,5 @@ | ||
--- | ||
"ui-library": minor | ||
--- | ||
|
||
Added ExpenseItem story |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { ExpenseItem } from '@inkbeard/budget-it'; | ||
|
||
// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction | ||
export default { | ||
title: 'Budget It/ExpenseItem', | ||
component: ExpenseItem, | ||
tags: ['autodocs'], | ||
parameters: { | ||
layout: 'fullscreen', | ||
}, | ||
}; | ||
export const SampleExpenseItem = { | ||
args: { | ||
expense: { | ||
amount: 2, | ||
categoryId: 1, | ||
name: 'Netflix', | ||
order: 0, | ||
sourceId: 1, | ||
}, | ||
sourceList: { | ||
1: 'Credit Card', | ||
3: 'Checking Account', | ||
4: 'Savings Account', | ||
5: 'Cash', | ||
}, | ||
}, | ||
}; |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import AddCategory from './src/components/AddCategory.vue'; | ||
import SourceListing from './src/components/SourceListing.vue'; | ||
import ExpenseItem from './src/components/ExpenseItem.vue'; | ||
|
||
export { | ||
AddCategory, | ||
ExpenseItem, | ||
SourceListing, | ||
}; |
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