mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
Apply prettier config to all files
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { classNames } from "@documenso/lib";
|
||||
import Link from "next/link";
|
||||
import React from "react";
|
||||
import Link from "next/link";
|
||||
import { classNames } from "@documenso/lib";
|
||||
|
||||
export function Button(props: any) {
|
||||
const isLink = typeof props.href !== "undefined" && !props.disabled;
|
||||
@ -8,8 +8,7 @@ export function Button(props: any) {
|
||||
const baseStyles =
|
||||
"inline-flex items-center justify-center min-w-[80px] rounded-md border border-transparent px-4 py-2 text-sm font-medium shadow-sm disabled:bg-gray-300";
|
||||
const primaryStyles = "text-white bg-neon hover:bg-neon-dark";
|
||||
const secondaryStyles =
|
||||
"border-gray-300 bg-white text-gray-700 hover:bg-gray-50";
|
||||
const secondaryStyles = "border-gray-300 bg-white text-gray-700 hover:bg-gray-50";
|
||||
|
||||
return isLink ? (
|
||||
<Link
|
||||
@ -20,13 +19,9 @@ export function Button(props: any) {
|
||||
color === "primary" ? primaryStyles : secondaryStyles,
|
||||
props.className
|
||||
)}
|
||||
hidden={props.hidden}
|
||||
>
|
||||
hidden={props.hidden}>
|
||||
{props.icon ? (
|
||||
<props.icon
|
||||
className="inline h-5 mr-1 text-inherit"
|
||||
aria-hidden="true"
|
||||
></props.icon>
|
||||
<props.icon className="mr-1 inline h-5 text-inherit" aria-hidden="true"></props.icon>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
@ -43,13 +38,9 @@ export function Button(props: any) {
|
||||
)}
|
||||
onClick={props.onClick}
|
||||
disabled={props.disabled || props.loading}
|
||||
hidden={props.hidden}
|
||||
>
|
||||
hidden={props.hidden}>
|
||||
{props.icon ? (
|
||||
<props.icon
|
||||
className="inline h-5 mr-1 text-inherit"
|
||||
aria-hidden="true"
|
||||
></props.icon>
|
||||
<props.icon className="mr-1 inline h-5 text-inherit" aria-hidden="true"></props.icon>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { classNames } from "@documenso/lib";
|
||||
import Link from "next/link";
|
||||
import React from "react";
|
||||
import Link from "next/link";
|
||||
import { classNames } from "@documenso/lib";
|
||||
|
||||
export function IconButton(props: any) {
|
||||
const isLink = typeof props.href !== "undefined";
|
||||
@ -18,13 +18,9 @@ export function IconButton(props: any) {
|
||||
color === "primary" ? primaryStyles : secondaryStyles,
|
||||
props.className
|
||||
)}
|
||||
hidden={props.hidden}
|
||||
>
|
||||
hidden={props.hidden}>
|
||||
{props.icon ? (
|
||||
<props.icon
|
||||
className="inline text-inherit h-6 mr-1"
|
||||
aria-hidden="true"
|
||||
></props.icon>
|
||||
<props.icon className="mr-1 inline h-6 text-inherit" aria-hidden="true"></props.icon>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
@ -40,13 +36,9 @@ export function IconButton(props: any) {
|
||||
)}
|
||||
onClick={props.onClick}
|
||||
disabled={props.disabled}
|
||||
hidden={props.hidden}
|
||||
>
|
||||
hidden={props.hidden}>
|
||||
{props.icon ? (
|
||||
<props.icon
|
||||
className="inline text-inherit h-6 mr-1"
|
||||
aria-hidden="true"
|
||||
></props.icon>
|
||||
<props.icon className="mr-1 inline h-6 text-inherit" aria-hidden="true"></props.icon>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user