New source found from dndbeyond.com
This commit is contained in:
@@ -1,19 +1,23 @@
|
||||
import { visuallyHidden } from "@mui/utils";
|
||||
import React from "react";
|
||||
import { connect, DispatchProp } from "react-redux";
|
||||
import { AnyAction } from "redux";
|
||||
|
||||
import {
|
||||
CharacterTheme,
|
||||
rulesEngineSelectors,
|
||||
} from "@dndbeyond/character-rules-engine/es";
|
||||
|
||||
import a11yStyles from "~/styles/accessibility.module.css";
|
||||
|
||||
import { appEnvSelectors } from "../../../../Shared/selectors";
|
||||
import SubsectionTablet from "../../../components/SubsectionTablet";
|
||||
import TabletBox from "../../../components/TabletBox";
|
||||
import { SheetAppState } from "../../../typings";
|
||||
import Actions from "../../Actions";
|
||||
|
||||
interface Props extends DispatchProp {
|
||||
// TODO: We are typing with AnyAction here to work around issues with UnknownAction, the type that was introduced in Redux 5.
|
||||
// If we decide to modernize to Redux 5, we will need to refactor much of the Rules Engine redux usage.
|
||||
interface Props extends DispatchProp<AnyAction> {
|
||||
isReadonly: boolean;
|
||||
theme: CharacterTheme;
|
||||
}
|
||||
@@ -25,7 +29,7 @@ class ActionsTablet extends React.PureComponent<Props> {
|
||||
<SubsectionTablet>
|
||||
<TabletBox theme={theme} header="Actions" className="ct-actions-tablet">
|
||||
<section>
|
||||
<h2 style={visuallyHidden}>Actions</h2>
|
||||
<h2 className={a11yStyles.screenreaderOnly}>Actions</h2>
|
||||
<Actions />
|
||||
</section>
|
||||
</TabletBox>
|
||||
|
||||
Reference in New Issue
Block a user