fix: adding redirect urls

This commit is contained in:
Alaister Young committed 2024-09-20 18:48:17 +08:00
1 parent 4647d50380
commit b44d33c669
2 files changed
+2 -6

No files matched your search

@@ -5,7 +5,6 @@ import { useMemo, useState } from 'react'
import { toast } from 'sonner'
import { object, string } from 'yup'
import { Label } from '@ui/components/shadcn/ui/label'
import { useParams } from 'common'
import { ButtonTooltip } from 'components/ui/ButtonTooltip'
import { FormHeader } from 'components/ui/Forms/FormHeader'
@@ -20,10 +19,10 @@ import {
Button,
DialogSectionSeparator,
Form,
Input,
Modal,
WarningIcon,
} from 'ui'
import { Input } from 'ui-patterns/DataInputs/Input'
import { urlRegex } from '../Auth.constants'
import { RedirectUrlList } from './RedirectUrlList'
import { ValueContainer } from './ValueContainer'
@@ -209,8 +208,7 @@ export const RedirectUrls = () => {
return (
<>
<Modal.Content className="flex flex-col gap-y-2">
<Label htmlFor="url">URL</Label>
<Input id="url" name="url" placeholder="https://mydomain.com" />
<Input id="url" name="url" label="URL" placeholder="https://mydomain.com" />
</Modal.Content>
<DialogSectionSeparator />
<Modal.Content>
@@ -68,8 +68,6 @@ const ResourceExhaustionWarningBanner = () => {
: RESOURCE_WARNING_MESSAGES[activeWarnings[0] as keyof typeof RESOURCE_WARNING_MESSAGES]
?.metric
console.log({ metric })
const correctionUrl = (
metric === undefined
? undefined