Fix linting and build errors.
This commit is contained in:
parent
d8d05589e7
commit
36e1ea45d5
9 changed files with 94 additions and 45 deletions
|
|
@ -1,7 +1,13 @@
|
|||
import {actionClosedMessageBanner} from "./state/action.ts";
|
||||
import {Action, actionClosedMessageBanner} from "./state/action.ts";
|
||||
import styles from "./message-banner.module.css";
|
||||
import {State} from "@/app/state/state.ts";
|
||||
import {ActionDispatch} from "react";
|
||||
|
||||
export default function MessageBanner({state, dispatch}) {
|
||||
export default function MessageBanner({state, dispatch}:
|
||||
{
|
||||
state: State;
|
||||
dispatch: ActionDispatch<[Action]>
|
||||
}) {
|
||||
function handleClose() {
|
||||
dispatch(actionClosedMessageBanner());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue