Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/v3.0.1 #42

Merged
merged 1 commit into from Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions readme.md
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 **developers@amity.co** 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
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
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.