Skip to content

Commit

Permalink
docs: remove react-reveal
Browse files Browse the repository at this point in the history
  • Loading branch information
97vack committed Jun 30, 2024
1 parent 5fa95b9 commit 2734048
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .dumi/component/Hero/TextWrap/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React from 'react';
import Zoom from 'react-reveal/Zoom';
// import Zoom from 'react-reveal/Zoom';

const Zoom = ({ children }: { children: any }) => <>{children}</>;

export const TextWrap = ({
style,
Expand Down
4 changes: 3 additions & 1 deletion .dumi/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ import { Feature } from '@components/Hero/Feature';
import { TextWrap } from '@components/Hero/TextWrap';
import { history, useLocale } from 'dumi';
import React from 'react';
import Zoom from 'react-reveal/Zoom';
// import Zoom from 'react-reveal/Zoom';
import { useLocalFormat } from 'useLocalFormat';

const Zoom = ({ children }: { children: any }) => <>{children}</>;

// import Demo from '@components/Hero/Gif/Demo';

export default function App() {
Expand Down
4 changes: 3 additions & 1 deletion .dumi/theme/builtins/SourceCode/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import React, {
type ReactNode,
} from 'react';
import { CopyToClipboard } from 'react-copy-to-clipboard';
import Fade from 'react-reveal/Fade';
// import Fade from 'react-reveal/Fade';
import './index.less';
import './theme.less';
/**
Expand All @@ -24,6 +24,8 @@ const SIMILAR_DSL: Record<string, Language> = {
vue: 'markup',
};

const Fade = ({ children }: { children: any }) => <>{children}</>;

export interface ISourceCodeProps {
children: string;
lang: Language;
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
"react": "^18.0.0",
"react-docgen-typescript": "^2.2.2",
"react-dom": "^18.0.0",
"react-reveal": "^1.2.2",
"simplebar-react": "^3.2.4",
"stylelint": "^14.9.1",
"vitest": "^0.34.6"
Expand Down

0 comments on commit 2734048

Please sign in to comment.