Use theme store to pass color_scheme directly to components
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { ColorScheme } from "../theme/color_scheme"
|
||||
import { useTheme } from "../theme"
|
||||
import { background, border, text } from "./components"
|
||||
|
||||
export default function project_shared_notification(
|
||||
theme: ColorScheme
|
||||
): unknown {
|
||||
export default function project_shared_notification(): unknown {
|
||||
const theme = useTheme()
|
||||
|
||||
const avatar_size = 48
|
||||
return {
|
||||
window_height: 74,
|
||||
|
||||
Reference in New Issue
Block a user