Skip to content

Commit

Permalink
CORE-4972: remove roat gard
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 committed Sep 5, 2024
1 parent b77b886 commit 266334d
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 63 deletions.
3 changes: 1 addition & 2 deletions templates/content/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { observer } from 'mobx-react-lite'

import TableCard from './cards/table-card'
import Title from '../../components/title'
import RouteGuard from '../../utils/allowedRouteGuards'

const ContentTemplate = observer(
({ works, changeVisibility, exportUrl, ...props }) => (
Expand All @@ -21,4 +20,4 @@ const ContentTemplate = observer(
)
)

export default RouteGuard(ContentTemplate)
export default ContentTemplate
3 changes: 1 addition & 2 deletions templates/deduplication/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import DeduplicationTableCard from './tables/deduplicationTables'
import texts from '../../texts/deduplication/deduplication.yml'
import ShowMoreText from '../../components/showMore'
import DashboardHeader from '../../components/dashboard-header'
import RouteGuard from '../../utils/allowedRouteGuards'

const DeduplicationPageTemplate = observer(
({
Expand Down Expand Up @@ -117,4 +116,4 @@ const DeduplicationPageTemplate = observer(
)
}
)
export default RouteGuard(DeduplicationPageTemplate)
export default DeduplicationPageTemplate
3 changes: 1 addition & 2 deletions templates/deposit-compliance/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
} from './cards'
import AccessPlaceholder from '../../components/access-placeholder/AccessPlaceholder'
import DashboardHeader from '../../components/dashboard-header'
import RouteGuard from '../../utils/allowedRouteGuards'

import { Icon, Link, Message } from 'design'
import { intro as texts } from 'texts/depositing'
Expand Down Expand Up @@ -111,4 +110,4 @@ const DepositComplianceTemplate = ({
)
}

export default RouteGuard(DepositComplianceTemplate)
export default DepositComplianceTemplate
3 changes: 1 addition & 2 deletions templates/doi/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from 'react'
import styles from './styles.module.css'
import { CoverageCard, TableCard } from './cards'
import AccessPlaceholder from '../../components/access-placeholder/AccessPlaceholder'
import RouteGuard from '../../utils/allowedRouteGuards'

import Title from 'components/title'

Expand Down Expand Up @@ -46,4 +45,4 @@ const DoiTemplate = ({
)
}

export default RouteGuard(DoiTemplate)
export default DoiTemplate
3 changes: 1 addition & 2 deletions templates/harvesting/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import useTypes from './hooks/use-types'
import HarvestingProgressCard from './cards/harvesting-progress'
import { GlobalContext } from '../../store'
import info from '../../components/upload/assets/infoLight.svg'
import RouteGuard from '../../utils/allowedRouteGuards'

import Title from 'components/title'
import { Button, Card } from 'design'
Expand Down Expand Up @@ -119,4 +118,4 @@ const HarvestingPageTemplate = observer(
}
)

export default RouteGuard(HarvestingPageTemplate)
export default HarvestingPageTemplate
3 changes: 1 addition & 2 deletions templates/rrs-policy/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import RrsCheckCard from './cards/rrsCheckerCard'
import RrsTable from './tables/rrsTable'
import DashboardHeader from '../../components/dashboard-header'
import ShowMoreText from '../../components/showMore'
import RouteGuard from '../../utils/allowedRouteGuards'

import rrs from 'texts/rrs-retention'

Expand Down Expand Up @@ -89,4 +88,4 @@ const RrsPageTemplate = ({
)
}

export default RouteGuard(RrsPageTemplate)
export default RrsPageTemplate
51 changes: 0 additions & 51 deletions utils/allowedRouteGuards.jsx

This file was deleted.

0 comments on commit 266334d

Please sign in to comment.