Fix Codacy issues
This commit is contained in:
parent
87f9f83643
commit
9375f337d7
6 changed files with 13 additions and 16 deletions
|
@ -3,7 +3,7 @@ export default function DonateBanner() {
|
|||
|
||||
if (location.hostname.endsWith(".calendso.com")) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
@ -21,7 +21,7 @@ return null;
|
|||
Support the ongoing development
|
||||
</span>
|
||||
<span className="hidden md:inline">
|
||||
You're using the free self-hosted version. Support the
|
||||
You're using the free self-hosted version. Support the
|
||||
ongoing development by making a donation.
|
||||
</span>
|
||||
</p>
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
@apply font-medium;
|
||||
} */
|
||||
|
||||
.text {
|
||||
}
|
||||
|
||||
.text--body {
|
||||
@apply text-lg leading-relaxed;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ const validJson = (jsonString) => {
|
|||
return o;
|
||||
}
|
||||
}
|
||||
catch (e) {}
|
||||
catch (e) { console.error(e); }
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ export default function Logout() {
|
|||
</div>
|
||||
<div className="mt-3 text-center sm:mt-5">
|
||||
<h3 className="text-lg leading-6 font-medium text-gray-900" id="modal-title">
|
||||
You've been logged out
|
||||
You've been logged out
|
||||
</h3>
|
||||
<div className="mt-2">
|
||||
<p className="text-sm text-gray-500">
|
||||
|
@ -38,4 +38,4 @@ export default function Logout() {
|
|||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -142,7 +142,7 @@ export default function Availability(props) {
|
|||
</thead>
|
||||
<tbody className="bg-white divide-y divide-gray-200">
|
||||
{props.types.map((eventType) =>
|
||||
<tr>
|
||||
<tr key={eventType.id}>
|
||||
<td className="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900 align-top">
|
||||
{eventType.title}
|
||||
{eventType.hidden &&
|
||||
|
@ -192,7 +192,7 @@ export default function Availability(props) {
|
|||
<div className="w-1/2 ml-2 bg-white shadow rounded-lg">
|
||||
<div className="px-4 py-5 sm:p-6">
|
||||
<h3 className="text-lg leading-6 font-medium text-gray-900">
|
||||
Something doesn't look right?
|
||||
Something doesn't look right?
|
||||
</h3>
|
||||
<div className="mt-2 max-w-xl text-sm text-gray-500">
|
||||
<p>
|
||||
|
@ -289,7 +289,7 @@ export default function Availability(props) {
|
|||
<label htmlFor="ishidden" className="font-medium text-gray-700">
|
||||
Hide this event type
|
||||
</label>
|
||||
<p className="text-gray-500">Hide the event type from your page, so it can only be booked through it's URL.</p>
|
||||
<p className="text-gray-500">Hide the event type from your page, so it can only be booked through it's URL.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -94,7 +94,7 @@ export default function Home({ integrations }) {
|
|||
</div>
|
||||
<div className="bg-white shadow overflow-hidden rounded-lg mb-8">
|
||||
{integrations.filter( (ig) => ig.credential ).length !== 0 ? <ul className="divide-y divide-gray-200">
|
||||
{integrations.filter(ig => ig.credential).map( (ig) => (<li>
|
||||
{integrations.filter(ig => ig.credential).map( (ig) => (<li key={ig.id}>
|
||||
<Link href={"/integrations/" + ig.credential.id}>
|
||||
<a className="block hover:bg-gray-50">
|
||||
<div className="flex items-center px-4 py-4 sm:px-6">
|
||||
|
@ -138,7 +138,7 @@ export default function Home({ integrations }) {
|
|||
</div>
|
||||
<div className="py-5 sm:p-6">
|
||||
<h3 className="text-lg leading-6 font-medium text-gray-900">
|
||||
You don't have any integrations added.
|
||||
You don't have any integrations added.
|
||||
</h3>
|
||||
<div className="mt-2 text-sm text-gray-500">
|
||||
<p>
|
||||
|
@ -196,7 +196,7 @@ export default function Home({ integrations }) {
|
|||
</div>
|
||||
<div className="my-4">
|
||||
<ul className="divide-y divide-gray-200">
|
||||
{integrations.filter( (integration) => integration.installed ).map( (integration) => (<li className="flex py-4">
|
||||
{integrations.filter( (integration) => integration.installed ).map( (integration) => (<li key={integration.type} className="flex py-4">
|
||||
<div className="w-1/12 mr-4 pt-2">
|
||||
<img className="h-8 w-8 mr-2" src={integration.imageSrc} alt={integration.title} />
|
||||
</div>
|
||||
|
@ -279,7 +279,7 @@ export default function Home({ integrations }) {
|
|||
</div>
|
||||
<div className="my-4">
|
||||
<ul className="divide-y divide-gray-200">
|
||||
{selectableCalendars.map( (calendar) => (<li className="flex py-4">
|
||||
{selectableCalendars.map( (calendar) => (<li key={calendar.name} className="flex py-4">
|
||||
<div className="w-1/12 mr-4 pt-2">
|
||||
<img className="h-8 w-8 mr-2" src={getCalendarIntegrationImage(calendar.integration)} alt={calendar.integration} />
|
||||
</div>
|
||||
|
@ -329,7 +329,7 @@ const validJson = (jsonString: string) => {
|
|||
return o;
|
||||
}
|
||||
}
|
||||
catch (e) {}
|
||||
catch (e) { console.error(e); }
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue