App refactoring (#257)
* add cache * update Panel * next app refacoring * app style refactoring * years refactroing
This commit is contained in:
1 parent
9ee9bce197
commit
0fd75a3b9a
10 files changed
+102
-88
No files matched your search
@@ -1,7 +1,5 @@
|
||||
import { proxy } from "valtio"
|
||||
|
||||
const currentYear = () => (new Date()).getFullYear()
|
||||
|
||||
type Contact = {
|
||||
type: string
|
||||
value: string
|
||||
@@ -9,12 +7,10 @@ type Contact = {
|
||||
}
|
||||
|
||||
type State = {
|
||||
years: [number, number]
|
||||
contacts: Contact[]
|
||||
}
|
||||
|
||||
export const state = proxy<State>({
|
||||
years: [2012, currentYear()],
|
||||
contacts: [
|
||||
{
|
||||
type: "link",
|
||||
|
||||
Reference in new issue
Block a user