App refactoring (#257)

* add cache

* update Panel

* next app refacoring

* app style refactoring

* years refactroing
This commit is contained in:
tmshv authored and GitHub committed 2026-02-08 16:34:08 +07:00
1 parent 9ee9bce197
commit 0fd75a3b9a
10 files changed
+102 -88

No files matched your search

+7 -11
View File
@@ -1,13 +1,9 @@
import { state } from "@/store/config"
import { useSnapshot } from "valtio"
function Copyright() {
const { years } = useSnapshot(state)
const year = years.map(String).join("—")
return (
<span>©&nbsp;{year} Шлиссельбургская детская художественная школа</span>
)
export type CopyrightProps = {
years: string
}
export default Copyright
export function Copyright({ years }: CopyrightProps) {
return (
<span>©&nbsp;{years} Шлиссельбургская детская художественная школа</span>
)
}