Skip to content

Commit

Permalink
Fix components not found
Browse files Browse the repository at this point in the history
  • Loading branch information
markkaylor committed Apr 11, 2023
1 parent b7b92b2 commit eb2cf3a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Switch, Route, useRouteMatch, Redirect, useLocation } from 'react-route
import {
CheckPagePermissions,
LoadingIndicatorPage,
NotFound,
AnErrorOccurred,
useGuidedTour,
} from '@strapi/helper-plugin';
import { Layout, HeaderLayout, Main } from '@strapi/design-system';
Expand Down Expand Up @@ -104,7 +104,7 @@ const App = () => {
<Route path="/content-manager/no-content-types">
<NoContentType />
</Route>
<Route path="" component={NotFound} />
<Route path="" component={AnErrorOccurred} />
</Switch>
</ModelsContext.Provider>
</Layout>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Typography, Box, Flex, Icon } from '@strapi/design-system';
import { EmptyStateDocument } from '@strapi/icons';
import { EmptyDocuments } from '@strapi/icons';
import { EmptyNpmPackageGrid } from './EmptyNpmPackageGrid';

const EmptyNpmPackageSearch = ({ content }) => {
Expand All @@ -10,7 +10,7 @@ const EmptyNpmPackageSearch = ({ content }) => {
<EmptyNpmPackageGrid />
<Box position="absolute" top={11} width="100%">
<Flex alignItems="center" justifyContent="center" direction="column">
<Icon as={EmptyStateDocument} color="" width="160px" height="88px" />
<Icon as={EmptyDocuments} color="" width="160px" height="88px" />
<Box paddingTop={6}>
<Typography variant="delta" as="p" textColor="neutral600">
{content}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components';
import { useIntl } from 'react-intl';
import qs from 'qs';
import { Box, Flex, Typography, LinkButton, Icon } from '@strapi/design-system';
import { Plus, EmptyStateDocument } from '@strapi/icons';
import { Plus, EmptyDocuments } from '@strapi/icons';
import { getTrad } from '../../../utils';

const EmptyCard = styled(Box)`
Expand Down Expand Up @@ -38,7 +38,7 @@ const EmptyAttributes = () => {
<EmptyCardGrid />
<Box position="absolute" top={6} width="100%">
<Flex alignItems="center" justifyContent="center" direction="column">
<Icon as={EmptyStateDocument} color="" width="160px" height="88px" />
<Icon as={EmptyDocuments} color="" width="160px" height="88px" />
<Box paddingTop={6} paddingBottom={4}>
<Box textAlign="center">
<Typography variant="delta" as="p" textColor="neutral600">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Typography, Flex, Box, Icon } from '@strapi/design-system';
import { EmptyStateDocuments } from '@strapi/icons';
import { EmptyDocuments } from '@strapi/icons';
import { EmptyAssetGrid } from './EmptyAssetGrid';

export const EmptyAssets = ({ icon, content, action, size, count }) => {
Expand All @@ -12,7 +12,7 @@ export const EmptyAssets = ({ icon, content, action, size, count }) => {
<Box position="absolute" top={11} width="100%">
<Flex direction="column" alignItems="center" gap={4} textAlign="center">
<Flex direction="column" alignItems="center" gap={6}>
<Icon as={icon || EmptyStateDocuments} color="" width="160px" height="88px" />
<Icon as={icon || EmptyDocuments} color="" width="160px" height="88px" />

<Typography variant="delta" as="p" textColor="neutral600">
{content}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import React from 'react';
import { Switch, Route } from 'react-router-dom';
import { NotFound } from '@strapi/helper-plugin';
import { AnErrorOccurred } from '@strapi/helper-plugin';
import pluginId from '../../pluginId';
import HomePage from '../HomePage';

Expand All @@ -16,7 +16,7 @@ const App = () => {
<div>
<Switch>
<Route path={`/plugins/${pluginId}`} component={HomePage} exact />
<Route component={NotFound} />
<Route component={AnErrorOccurred} />
</Switch>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import React from 'react';
import { Switch, Route } from 'react-router-dom';
import { NotFound } from '@strapi/helper-plugin';
import { AnErrorOccurred } from '@strapi/helper-plugin';
import pluginId from '../../pluginId';
import HomePage from '../HomePage';

Expand All @@ -16,7 +16,7 @@ const App = () => {
<div>
<Switch>
<Route path={`/plugins/${pluginId}`} component={HomePage} exact />
<Route component={NotFound} />
<Route component={AnErrorOccurred} />
</Switch>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Switch, Route } from 'react-router-dom';
import { CheckPagePermissions, NotFound } from '@strapi/helper-plugin';
import { CheckPagePermissions, AnErrorOccurred } from '@strapi/helper-plugin';
import pluginId from '../../pluginId';
import pluginPermissions from '../../permissions';
import ProtectedRolesListPage from './ProtectedListPage';
Expand All @@ -18,7 +18,7 @@ const Roles = () => {
/>
<Route path={`/settings/${pluginId}/roles/:id`} component={ProtectedRolesEditPage} exact />
<Route path={`/settings/${pluginId}/roles`} component={ProtectedRolesListPage} exact />
<Route path="" component={NotFound} />
<Route path="" component={AnErrorOccurred} />
</Switch>
</CheckPagePermissions>
);
Expand Down

0 comments on commit eb2cf3a

Please sign in to comment.