eslint react/jsx-curly-brace-presence

This commit is contained in:
zomars committed 2022-07-12 11:52:13 -06:00
1 parent dbfc1477aa
commit 7bcc5c4548
32 files changed
+57 -64

No files matched your search

@@ -50,7 +50,7 @@ const AdditionalCalendarSelector = ({ isLoading }: AdditionalCalendarSelectorPro
}));
return (
<Select
name={"additionalCalendar"}
name="additionalCalendar"
placeholder={t("connect_additional_calendar")}
options={options}
styles={{
@@ -69,7 +69,7 @@ const DestinationCalendarSelector = ({
return (
<div className="relative" title={`${t("select_destination_calendar")}: ${selectedOption?.label || ""}`}>
<Select
name={"primarySelectedCalendar"}
name="primarySelectedCalendar"
placeholder={!hidePlaceholder ? `${t("select_destination_calendar")}:` : undefined}
options={options}
styles={{
+1 -1
View File
@@ -1159,7 +1159,7 @@ export const EmbedButton = ({
className={className}
{...props}
data-test-eventtype-id={eventTypeId}
data-testid={"event-type-embed"}
data-testid="event-type-embed"
onClick={() => openEmbedModal()}>
<CodeIcon
className={classNames("h-4 w-4 ltr:mr-2 rtl:ml-2", dark ? "" : "text-neutral-500")}></CodeIcon>
+1 -1
View File
@@ -34,7 +34,7 @@ export default function SAMLLogin(props: Props) {
<div className="mt-5">
<Button
color="secondary"
data-testid={"saml"}
data-testid="saml"
className="flex w-full justify-center"
onClick={async (event) => {
event.preventDefault();
@@ -102,7 +102,7 @@ const AvailableTimes: FC<AvailableTimesProps> = ({
brand === "#fff" || brand === "#ffffff" ? "border-brandcontrast" : "border-brand"
)}>
{dayjs(slot.time).tz(timeZone()).format(timeFormat)}
{!!seatsPerTimeSlot && <p className={`text-sm`}>{t("booking_full")}</p>}
{!!seatsPerTimeSlot && <p className="text-sm">{t("booking_full")}</p>}
</div>
) : (
<Link href={bookingUrl} prefetch={false}>
@@ -245,7 +245,7 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
id="wherebylink"
placeholder="https://www.whereby.com/cal"
required
className={"block w-full rounded-sm border-gray-300 text-sm"}
className="block w-full rounded-sm border-gray-300 text-sm"
defaultValue={
defaultValues
? defaultValues.find(
@@ -292,7 +292,7 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
id="aroundlink"
placeholder="https://www.around.co/rick"
required
className={"block w-full rounded-sm border-gray-300 text-sm"}
className="block w-full rounded-sm border-gray-300 text-sm"
defaultValue={
defaultValues
? defaultValues.find(
@@ -339,7 +339,7 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
id="aroundlink"
placeholder="https://www.riverside.fm/studio/rick"
required
className={"block w-full rounded-sm border-gray-300 text-sm"}
className="block w-full rounded-sm border-gray-300 text-sm"
defaultValue={
defaultValues
? defaultValues.find(
+2 -2
View File
@@ -92,7 +92,7 @@ export default function TeamSettings(props: Props) {
id="team-url"
addOnLeading={
<span className="inline-flex items-center rounded-l-sm border border-r-0 border-gray-300 bg-gray-50 px-3 text-sm text-gray-500">
{process.env.NEXT_PUBLIC_WEBSITE_URL}/{"team/"}
{process.env.NEXT_PUBLIC_WEBSITE_URL}/team/
</span>
}
ref={teamUrlRef}
@@ -140,7 +140,7 @@ export default function TeamSettings(props: Props) {
<div>
<SettingInputContainer
Icon={PhotographIcon}
label={"Logo"}
label="Logo"
htmlFor="avatar"
Input={
<>
@@ -120,7 +120,7 @@ export default function TeamSettingsRightSidebar(props: { team: TeamWithMembers;
{props.team?.id && props.role !== MembershipRole.MEMBER && (
<Link href={`/settings/teams/${props.team.id}/availability`}>
<div className="mt-5 hidden space-y-1 sm:block">
<LinkIconButton Icon={ClockIcon}>{"View Availability"}</LinkIconButton>
<LinkIconButton Icon={ClockIcon}>View Availability</LinkIconButton>
<p className="mt-2 text-sm text-gray-500">See your team members availability at a glance.</p>
</div>
</Link>
@@ -50,7 +50,7 @@ export function UpgradeToFlexibleProModal(props: Props) {
setErrorMessage(null);
}}>
<DialogTrigger asChild>
<a className="cursor-pointer underline">{"Upgrade Now"}</a>
<a className="cursor-pointer underline">Upgrade Now</a>
</DialogTrigger>
<DialogContent>
<DialogHeader title={t("Purchase missing seats")} />
@@ -181,7 +181,7 @@ const PremiumTextfield = (props: ICustomUsernameProps) => {
return (
<>
<div style={{ display: "flex", justifyItems: "center" }}>
<Label htmlFor={"username"}>{t("username")}</Label>
<Label htmlFor="username">{t("username")}</Label>
</div>
<div className="mt-1 flex rounded-md shadow-sm">
<span
@@ -193,10 +193,10 @@ const PremiumTextfield = (props: ICustomUsernameProps) => {
<div style={{ position: "relative", width: "100%" }}>
<Input
ref={usernameRef}
name={"username"}
autoComplete={"none"}
autoCapitalize={"none"}
autoCorrect={"none"}
name="username"
autoComplete="none"
autoCapitalize="none"
autoCorrect="none"
className={classNames(
"mt-0 rounded-l-none",
markAsError
@@ -262,7 +262,7 @@ const PremiumTextfield = (props: ICustomUsernameProps) => {
<PencilAltIcon className="m-auto h-6 w-6"></PencilAltIcon>
</div>
<div className="mb-4 w-full px-4 pt-1">
<DialogHeader title={"Confirm username change"} />
<DialogHeader title="Confirm username change" />
{usernameChangeCondition && usernameChangeCondition !== UsernameChangeStatusEnum.NORMAL && (
<p className="-mt-4 mb-4 text-sm text-gray-800">
{usernameChangeCondition === UsernameChangeStatusEnum.UPGRADE &&
@@ -107,7 +107,7 @@ const UsernameTextfield = (props: ICustomUsernameProps) => {
return (
<>
<div>
<Label htmlFor={"username"}>{t("username")}</Label>
<Label htmlFor="username">{t("username")}</Label>
</div>
<div className="mt-1 flex rounded-md shadow-sm">
<span
@@ -119,10 +119,10 @@ const UsernameTextfield = (props: ICustomUsernameProps) => {
<div className="relative w-full">
<Input
ref={usernameRef}
name={"username"}
autoComplete={"none"}
autoCapitalize={"none"}
autoCorrect={"none"}
name="username"
autoComplete="none"
autoCapitalize="none"
autoCorrect="none"
className={classNames(
"mt-0 rounded-l-none",
markAsError
@@ -24,7 +24,7 @@ export default function WebhookTestDisclosure() {
return (
<Collapsible open={open} onOpenChange={() => setOpen(!open)}>
<CollapsibleTrigger type="button" className={"flex w-full cursor-pointer"}>
<CollapsibleTrigger type="button" className="flex w-full cursor-pointer">
<ChevronRightIcon className={`${open ? "rotate-90 transform" : ""} h-5 w-5 text-neutral-500`} />
<span className="text-sm font-medium text-gray-700">{t("webhook_test")}</span>
</CollapsibleTrigger>