feat: added seed

This commit is contained in:
2023-07-05 22:43:48 -03:00
parent 2d0f960d49
commit 201f55a1b8
22 changed files with 204 additions and 34 deletions

View File

@@ -1,3 +0,0 @@
export const SPEND_SCREEN_ID = 'spend-screen';
export const SPEND_SCREEN_NAME = 'Spend';
export const APP_NAME = 'SpendIA';

View File

@@ -1,12 +1,12 @@
/* eslint-disable @typescript-eslint/ban-types */
import { create } from 'zustand';
import { SPEND_SCREEN_ID, SPEND_SCREEN_NAME } from 'utils/constants';
import { type UserSpendData, type Tab } from '@/lib/types';
import { SPEND_SCREEN_ID, SPEND_SCREEN_NAME } from '@/lib/constants';
interface appStore {
tab: Tab;
setTab: (props: Tab) => void;
setUserSpendData: (props: UserSpendData[]) => void;
tab: Tab;
userSpendData: UserSpendData[];
}

View File

@@ -1,3 +1,4 @@
/* eslint-disable typescript-sort-keys/interface */
/* eslint-disable sort-keys-fix/sort-keys-fix */
export interface Theme {
colors: {

View File

@@ -9,8 +9,8 @@ interface Currency {
}
interface Category {
label: string;
backgroundColor: string;
label: string;
}
export interface UserSpendData {

View File

@@ -1 +0,0 @@
export const capitalize = (str: string): string => str.charAt(0).toUpperCase() + str.slice(1);