Skip to content

Commit

Permalink
fix: remove unused files and fix types (AmityCo#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonanaaaaaa authored Jan 24, 2024
1 parent 5519719 commit de1163e
Show file tree
Hide file tree
Showing 88 changed files with 6 additions and 1,738 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ Here are the steps to install ui-kit together with another project.
7. cd ./`<path-to-your-app>`
8. npm link @amityco/ui-kit-open-source --save

\*\* We need to link react module to react module in destination project so that react is the same instance otherwise we will encounter [issues with react hook](https://medium.com/bbc-product-technology/solving-the-problem-with-npm-link-and-react-hooks-266c832dd019).
** We need to link react module to react module in destination project so that react is the same instance otherwise we will encounter [issues with react hook](https://medium.com/bbc-product-technology/solving-the-problem-with-npm-link-and-react-hooks-266c832dd019).

### Documentation

Please refer to our online documentation at https://docs.amity.co or contact a Ui-Kit representative at **[email protected]** for support.

## Contributing

See [our contributing guide](https://github.com/EkoCommunications/AmityUiKitWeb/blob/develop/CONTRIBUTING.md)
See [our contributing guide](https://github.com/EkoCommunications/AmityUiKitWeb/blob/develop/CONTRIBUTING.md)
2 changes: 1 addition & 1 deletion src/core/components/Files/File.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const FileComponent = ({ file, onRemove }: FileProps) => {
{isNew && <ProgressBar progress={progress} />}

<Content>
<FileIcon file={{ name, type }} width={null} height="100%" />
<FileIcon file={{ name, type }} />
<FileName>{file.name}</FileName> <FileSize>{filesize(file.size, { base: 2 })}</FileSize>
{onRemove && <RemoveIcon onClick={() => onRemove(file)} />}
</Content>
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/Uploaders/File/StyledFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const StyledFile = ({
{isImg && !!url ? (
<ImgPreview src={url} />
) : (
<FileIcon file={{ name, type }} width={null} height="100%" />
<FileIcon file={{ name: name || '', type: type || '' }} />
)}
<FileName>{name}</FileName> <FileSize>{filesize(size || 0, { base: 2 })}</FileSize>
<ButtonContainer>
Expand Down
9 changes: 0 additions & 9 deletions src/icons/ArrowLeft.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions src/icons/ArrowRight.tsx

This file was deleted.

35 changes: 0 additions & 35 deletions src/icons/Balloon.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions src/icons/Ban.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/icons/Camera.tsx

This file was deleted.

22 changes: 0 additions & 22 deletions src/icons/Category.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/icons/Check.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/icons/CheckCircle.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/icons/ChevronDown.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions src/icons/ChevronLeft.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions src/icons/ChevronRight.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions src/icons/CircleRemove.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/icons/Close.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/icons/Comment.tsx

This file was deleted.

22 changes: 0 additions & 22 deletions src/icons/Community.tsx

This file was deleted.

Loading

0 comments on commit de1163e

Please sign in to comment.