Skip to content

Commit

Permalink
fix: renamed PDFRevision to WebsiteMonitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
chesterkmr committed Mar 19, 2024
1 parent 98ece33 commit 924e0c1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { DefaultBlocks } from '@/lib/blocks/variants/DefaultBlocks/DefaultBlocks
import { KybExampleBlocks } from '@/lib/blocks/variants/KybExampleBlocks/KybExampleBlocks';
import { ManualReviewBlocks } from '@/lib/blocks/variants/ManualReviewBlocks/ManualReviewBlocks';
import { OngoingBlocks } from '@/lib/blocks/variants/OngoingBlocks/OngoingBlocks';
import { PDFRevisionBlocks } from '@/lib/blocks/variants/PDFRevisionBlocks';
import { WebsiteMonitoringBlocks } from '@/lib/blocks/variants/WebsiteMonitoringBlocks';
import {
checkIsKybExampleVariant,
checkIsManualReviewVariant,
Expand All @@ -20,11 +20,11 @@ export const BlocksVariant: FunctionComponent<{
}> = ({ workflowDefinition }) => {
const isKybExampleVariant = checkIsKybExampleVariant(workflowDefinition);
const isManualReviewVariant = checkIsManualReviewVariant(workflowDefinition);
const isPDFReviewVariant = checkIsWebsiteMonitoringVariant(workflowDefinition);
const isWebsiteMonitoringVariant = checkIsWebsiteMonitoringVariant(workflowDefinition);
const isOngoingVariant = checkIsOngoingVariant(workflowDefinition);

if (isPDFReviewVariant) {
return <PDFRevisionBlocks />;
if (isWebsiteMonitoringVariant) {
return <WebsiteMonitoringBlocks />;
}

if (isKybExampleVariant) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { cells } from '@/lib/blocks/create-blocks-typed/create-blocks-typed';
import { usePDFRevisionBlocks } from '@/lib/blocks/variants/PDFRevisionBlocks/hooks/usePDFRevisionBlocks/usePDFRevisionBlocks';
import { useWebsiteMonitoringBlocks } from '@/lib/blocks/variants/WebsiteMonitoringBlocks/hooks/useWebsiteMonitoringBlocks/usePDFRevisionBlocks';
import { BlocksComponent } from '@ballerine/blocks';

export const PDFRevisionBlocks = () => {
const { blocks } = usePDFRevisionBlocks();
export const WebsiteMonitoringBlocks = () => {
const { blocks } = useWebsiteMonitoringBlocks();

return (
<div className="h-full">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createBlocksTyped } from '@/lib/blocks/create-blocks-typed/create-block
import { useMemo } from 'react';
import { useParams } from 'react-router-dom';

export const usePDFRevisionBlocks = () => {
export const useWebsiteMonitoringBlocks = () => {
const { entityId: workflowId } = useParams();
const filterId = useFilterId();
const { data: workflow } = useWorkflowByIdQuery({
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './WebsiteMonitoringBlocks';

0 comments on commit 924e0c1

Please sign in to comment.