Improve AccessibleButton & related types (#12075)
* Fix wrong type enum usage Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Use improved type definition for forwardRef which enables Generic props Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Improve AccessibleButton & related Props types Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove useless comment Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
e26d3e9b68
commit
af31965866
17 changed files with 109 additions and 79 deletions
|
@ -14,15 +14,15 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import React, { ComponentProps } from "react";
|
||||
|
||||
import { _t } from "../../../../languageHandler";
|
||||
import LearnMore, { LearnMoreProps } from "../../elements/LearnMore";
|
||||
import LearnMore from "../../elements/LearnMore";
|
||||
import { DeviceSecurityVariation } from "./types";
|
||||
|
||||
interface Props extends Omit<LearnMoreProps, "title" | "description"> {
|
||||
type Props = Omit<ComponentProps<typeof LearnMore>, "title" | "description"> & {
|
||||
variation: DeviceSecurityVariation;
|
||||
}
|
||||
};
|
||||
|
||||
const securityCardContent: Record<
|
||||
DeviceSecurityVariation,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue