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,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>© {year} Шлиссельбургская детская художественная школа</span>
|
||||
)
|
||||
export type CopyrightProps = {
|
||||
years: string
|
||||
}
|
||||
|
||||
export default Copyright
|
||||
export function Copyright({ years }: CopyrightProps) {
|
||||
return (
|
||||
<span>© {years} Шлиссельбургская детская художественная школа</span>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user