mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-03 01:06:39 +00:00
💡remove useless comments
This commit is contained in:
@@ -129,7 +129,6 @@ export default function AuthPageBrandingForm({
|
|||||||
|
|
||||||
if (!isValid) return;
|
if (!isValid) return;
|
||||||
try {
|
try {
|
||||||
// Update or existing auth page domain
|
|
||||||
const updateRes = await api.put(
|
const updateRes = await api.put(
|
||||||
`/org/${orgId}/login-page-branding`,
|
`/org/${orgId}/login-page-branding`,
|
||||||
{
|
{
|
||||||
@@ -138,7 +137,6 @@ export default function AuthPageBrandingForm({
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (updateRes.status === 200 || updateRes.status === 201) {
|
if (updateRes.status === 200 || updateRes.status === 201) {
|
||||||
// update the data from the API
|
|
||||||
router.refresh();
|
router.refresh();
|
||||||
toast({
|
toast({
|
||||||
variant: "default",
|
variant: "default",
|
||||||
@@ -160,13 +158,11 @@ export default function AuthPageBrandingForm({
|
|||||||
|
|
||||||
async function deleteBranding() {
|
async function deleteBranding() {
|
||||||
try {
|
try {
|
||||||
// Update or existing auth page domain
|
|
||||||
const updateRes = await api.delete(
|
const updateRes = await api.delete(
|
||||||
`/org/${orgId}/login-page-branding`
|
`/org/${orgId}/login-page-branding`
|
||||||
);
|
);
|
||||||
|
|
||||||
if (updateRes.status === 200) {
|
if (updateRes.status === 200) {
|
||||||
// update the data from the API
|
|
||||||
router.refresh();
|
router.refresh();
|
||||||
form.reset();
|
form.reset();
|
||||||
setIsDeleteModalOpen(false);
|
setIsDeleteModalOpen(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user