Add call ended page and redirect
This commit is contained in:
parent
d43e85ecc2
commit
269d8d4729
8 changed files with 119 additions and 26 deletions
|
|
@ -1,11 +1,18 @@
|
|||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import classNames from "classnames";
|
||||
import styles from "./Button.module.css";
|
||||
import { variantToClassName, sizeToClassName } from "./Button";
|
||||
|
||||
export function LinkButton({ className, children, ...rest }) {
|
||||
export function LinkButton({ className, variant, size, children, ...rest }) {
|
||||
return (
|
||||
<Link className={classNames(styles.secondary, className)} {...rest}>
|
||||
<Link
|
||||
className={classNames(
|
||||
variantToClassName[variant || "secondary"],
|
||||
sizeToClassName[size],
|
||||
className
|
||||
)}
|
||||
{...rest}
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue