add tailwind prettier and some clean up
This commit is contained in:
@@ -77,7 +77,7 @@ export default function AddClient() {
|
||||
<>
|
||||
<ModalHeader title="Success" text={'Your client is created'} />
|
||||
<CreateClientSuccess {...mutation.data} />
|
||||
<div className="flex gap-4 mt-4">
|
||||
<div className="mt-4 flex gap-4">
|
||||
<a
|
||||
className={cn(buttonVariants({ variant: 'secondary' }), 'flex-1')}
|
||||
href="https://docs.openpanel.dev/docs"
|
||||
@@ -150,7 +150,7 @@ export default function AddClient() {
|
||||
/>
|
||||
</TabsContent>
|
||||
<TabsContent value="other">
|
||||
<div className="p-2 px-3 bg-white rounded text-sm">
|
||||
<div className="rounded bg-white p-2 px-3 text-sm">
|
||||
🔑 You will get a secret to use for your API requests.
|
||||
</div>
|
||||
</TabsContent>
|
||||
|
||||
@@ -25,9 +25,9 @@ interface ModalHeaderProps {
|
||||
|
||||
export function ModalHeader({ title, text, onClose }: ModalHeaderProps) {
|
||||
return (
|
||||
<div className="flex justify-between mb-6">
|
||||
<div className="mb-6 flex justify-between">
|
||||
<div>
|
||||
<div className="font-medium mt-0.5">{title}</div>
|
||||
<div className="mt-0.5 font-medium">{title}</div>
|
||||
{!!text && <div className="text-sm text-muted-foreground">{text}</div>}
|
||||
</div>
|
||||
{onClose !== false && (
|
||||
|
||||
@@ -63,7 +63,7 @@ export default function ShareOverviewModal() {
|
||||
render={({ field }) => (
|
||||
<label
|
||||
htmlFor="public"
|
||||
className="flex items-center gap-2 text-sm font-medium leading-none mb-4"
|
||||
className="mb-4 flex items-center gap-2 text-sm font-medium leading-none"
|
||||
>
|
||||
<Checkbox
|
||||
id="public"
|
||||
|
||||
@@ -9,7 +9,7 @@ import { useOnClickOutside } from 'usehooks-ts';
|
||||
import type { ConfirmProps } from './Confirm';
|
||||
|
||||
const Loading = () => (
|
||||
<div className="fixed left-0 top-0 z-50 flex h-screen w-screen items-center justify-center overflow-auto bg-backdrop">
|
||||
<div className="bg-backdrop fixed left-0 top-0 z-50 flex h-screen w-screen items-center justify-center overflow-auto">
|
||||
<Loader className="mb-8 animate-spin" size={40} />
|
||||
</div>
|
||||
);
|
||||
@@ -162,7 +162,7 @@ export function ModalProvider() {
|
||||
return (
|
||||
<>
|
||||
{!!state.length && (
|
||||
<div className="fixed top-0 left-0 right-0 bottom-0 bg-[rgba(0,0,0,0.2)] z-50"></div>
|
||||
<div className="fixed bottom-0 left-0 right-0 top-0 z-50 bg-[rgba(0,0,0,0.2)]"></div>
|
||||
)}
|
||||
{state.map((item, index) => {
|
||||
const Modal = modals[item.name];
|
||||
|
||||
Reference in New Issue
Block a user