replaced btn-primary, btn-secondary, btn-white with respective Button equivalents (#1218)

* replaced btn primary, secondary, white with Button

* removed unused Link var

* replaced <button> in settings/security

Co-authored-by: Bailey Pumfleet <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2021-11-29 06:37:31 +00:00
1 parent 20cbab1c15
commit 529f3027cd
10 files changed
+57 -67

No files matched your search

+3 -4
View File
@@ -1,4 +1,3 @@
import Link from "next/link";
import { useForm } from "react-hook-form";
import { QueryCell } from "@lib/QueryCell";
@@ -68,9 +67,9 @@ export function AvailabilityForm(props: inferQueryOutput<"viewer.availability">)
<p>{t("troubleshoot_availability")}</p>
</div>
<div className="mt-5">
<Link href="/availability/troubleshoot">
<a className="btn btn-white">{t("launch_troubleshooter")}</a>
</Link>
<Button href="/availability/troubleshoot" color="secondary">
{t("launch_troubleshooter")}
</Button>
</div>
</div>
</div>
+5 -6
View File
@@ -1140,15 +1140,14 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
/>
<LocationOptions />
<div className="mt-5 sm:mt-4 sm:flex sm:flex-row-reverse ">
<button type="submit" className="btn btn-primary">
{t("update")}
</button>
<button
<Button type="submit">{t("update")}</Button>
<Button
onClick={() => setShowLocationModal(false)}
type="button"
className="mr-2 btn btn-white">
color="secondary"
className="mr-2">
{t("cancel")}
</button>
</Button>
</div>
</form>
</div>
+1 -3
View File
@@ -81,9 +81,7 @@ function HideBrandingInput(props: { hideBrandingRef: RefObject<HTMLInputElement>
</div>
<div className="mt-5 sm:mt-4 sm:flex sm:flex-row-reverse gap-x-2">
<DialogClose asChild>
<Button
className="table-cell text-center btn-wide btn-primary"
onClick={() => setModalOpen(false)}>
<Button className="table-cell text-center btn-wide" onClick={() => setModalOpen(false)}>
{t("dismiss")}
</Button>
</DialogClose>
+7 -11
View File
@@ -98,10 +98,7 @@ export default function Teams() {
)}
</div>
<div className="flex items-start mb-4">
<Button
type="button"
onClick={() => setShowCreateTeamModal(true)}
className="btn btn-white">
<Button type="button" onClick={() => setShowCreateTeamModal(true)} color="secondary">
<PlusIcon className="group-hover:text-black text-gray-700 w-3.5 h-3.5 mr-2 inline-block" />
{t("new_team")}
</Button>
@@ -114,7 +111,7 @@ export default function Teams() {
{!!invites.length && (
<div>
<h2 className="font-cal text-lg font-medium leading-6 text-gray-900">Open Invitations</h2>
<h2 className="text-lg font-medium leading-6 text-gray-900 font-cal">Open Invitations</h2>
<ul className="px-4 mt-4 mb-2 bg-white border divide-y divide-gray-200 rounded">
{invites.map((team: Team) => (
<TeamListItem
@@ -176,15 +173,14 @@ export default function Teams() {
/>
</div>
<div className="mt-5 sm:mt-4 sm:flex sm:flex-row-reverse">
<button type="submit" className="btn btn-primary">
{t("create_team")}
</button>
<button
<Button type="submit">{t("create_team")}</Button>
<Button
onClick={() => setShowCreateTeamModal(false)}
type="button"
className="mr-2 btn btn-white">
className="mr-2"
color="secondary">
{t("cancel")}
</button>
</Button>
</div>
</form>
</div>