Skip to content

Commit

Permalink
Merge pull request #96 from AElf-devops/feature/doc-upload
Browse files Browse the repository at this point in the history
feat: delete useless icon
  • Loading branch information
aelf-lxy authored Mar 25, 2024
2 parents edf6ee2 + 2893457 commit 7ab7bb2
Show file tree
Hide file tree
Showing 21 changed files with 31 additions and 98 deletions.
2 changes: 1 addition & 1 deletion .dumi/theme/common/styles/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Icon: React.FC = () => {
margin: 3px 0;
padding: 10px 0 0;
overflow: hidden;
color: #555;
color: #101114;
text-align: center;
list-style: none;
background-color: inherit;
Expand Down
8 changes: 8 additions & 0 deletions packages/component/src/Carousel/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ const useStyles = createStyles(
width: 16px;
height: 60px;
right: 0;
svg {
width: 16px;
height: 60px;
}
::after {
display: none;
}
Expand All @@ -112,6 +116,10 @@ const useStyles = createStyles(
width: 16px;
height: 60px;
left: 0;
svg {
width: 16px;
height: 60px;
}
::after {
display: none;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/component/src/Upload/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { ReactElement, ReactNode } from 'react';
import { DeleteOutlined, ShareExternalOutlined } from '@aelf-design/internal-icons';
import { DeleteOutlined, FileIcon } from '@aelf-design/internal-icons';
import { Upload as AntdUpload, UploadProps as AntdUploadProps, Image } from 'antd';
import { useTheme } from 'antd-style';
import { UploadFile } from 'antd/es/upload';
Expand Down Expand Up @@ -56,7 +56,7 @@ function UploadItemRender({
) : (
<div className={cx(styles.FilePreviewContainer)}>
<div className="file-icon-container">
<ShareExternalOutlined />
<FileIcon />
<div className="file-tips">Ready for review</div>
</div>
<div className="file-info">
Expand Down
4 changes: 2 additions & 2 deletions packages/component/src/UploadButton/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { UploadIcon } from '@aelf-design/internal-icons';
import { UploadOutlined } from '@aelf-design/internal-icons';
import { useTheme } from 'antd-style';

import useStyles from './style';
Expand All @@ -16,7 +16,7 @@ export default function UploadButton(props: IUploadButtonProps) {
const token = useTheme();
return (
<div className={cx(prefixCls + '-upload-button', styles.uploadButton)}>
<UploadIcon color={uploadIconColor || token.colorPrimary} />
<UploadOutlined style={{ fontSize: 40 }} color={uploadIconColor || token.colorPrimary} />
<div className={styles.message}>
<div className={styles.uploadText}>{uploadText || 'Upload'}</div>
{tips || (
Expand Down
13 changes: 13 additions & 0 deletions packages/internal-icons/src/components/FileIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../icon/AelfIcon';
import AelfSVGComponent from '../svgs/file.svg';
import { type IconProps } from '../type';

const componentName = 'FileIcon';
export const FileIcon = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} style={{ fontSize: '56px' }} ref={ref} {...props} />
);
});
FileIcon.displayName = componentName;
12 changes: 1 addition & 11 deletions packages/internal-icons/src/components/NextButtonIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ import { type IconProps } from '../type';

const componentName = 'NextButtonIcon';
export const NextButtonIcon = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon
component={AelfSVGComponent}
style={{
width: '16px',
height: '60px',
}}
ref={ref}
{...props}
/>
);
return <AelfIcon component={AelfSVGComponent} ref={ref} {...props} />;
});
NextButtonIcon.displayName = componentName;
12 changes: 1 addition & 11 deletions packages/internal-icons/src/components/PrevButtonIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ import { type IconProps } from '../type';

const componentName = 'PrevButtonIcon';
export const PrevButtonIcon = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon
component={AelfSVGComponent}
style={{
width: '16px',
height: '60px',
}}
ref={ref}
{...props}
/>
);
return <AelfIcon component={AelfSVGComponent} ref={ref} {...props} />;
});
PrevButtonIcon.displayName = componentName;
13 changes: 0 additions & 13 deletions packages/internal-icons/src/components/UploadIcon.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion packages/internal-icons/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export * from './components/NextButtonIcon';
export * from './components/PrevButtonIcon';
export * from './components/ProgressErrorIcon';
export * from './components/ProgressSuccessIcon';
export * from './components/UploadIcon';
export * from './components/FileIcon';

export * from './components/direction/index';
export * from './components/suggestion/index';
Expand Down
3 changes: 0 additions & 3 deletions packages/internal-icons/src/svgs/circle-close.svg

This file was deleted.

7 changes: 0 additions & 7 deletions packages/internal-icons/src/svgs/clear-icon.svg

This file was deleted.

3 changes: 0 additions & 3 deletions packages/internal-icons/src/svgs/close.svg

This file was deleted.

3 changes: 0 additions & 3 deletions packages/internal-icons/src/svgs/copy.svg

This file was deleted.

7 changes: 0 additions & 7 deletions packages/internal-icons/src/svgs/downArrow.svg

This file was deleted.

9 changes: 0 additions & 9 deletions packages/internal-icons/src/svgs/eye-invisible.svg

This file was deleted.

8 changes: 0 additions & 8 deletions packages/internal-icons/src/svgs/eye.svg

This file was deleted.

5 changes: 2 additions & 3 deletions packages/internal-icons/src/svgs/filled/time.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions packages/internal-icons/src/svgs/key-board.svg

This file was deleted.

3 changes: 0 additions & 3 deletions packages/internal-icons/src/svgs/logo.svg

This file was deleted.

3 changes: 0 additions & 3 deletions packages/internal-icons/src/svgs/query.svg

This file was deleted.

5 changes: 0 additions & 5 deletions packages/internal-icons/src/svgs/upload-icon.svg

This file was deleted.

0 comments on commit 7ab7bb2

Please sign in to comment.