chore: i18n in toast

This commit is contained in:
Tristan Yang
2023-01-19 08:39:57 +08:00
parent 1f7baef4b6
commit fd8c54e702
34 changed files with 107 additions and 86 deletions
+1 -13
View File
@@ -49,17 +49,6 @@ const StyledWrapper = styled.div`
&.loading .image img {
filter: blur(2px);
}
.origin {
font-weight: bold;
font-size: 14px;
color: #aaa;
&:hover {
text-decoration: underline;
color: #fff;
}
}
}
`;
@@ -117,13 +106,12 @@ const ImagePreviewModal: FC<Props> = ({ download = true, data, closeModal }) =>
<img
src={url}
alt="preview"
className={`animate__animated animate__fadeIn animate__faster`}
/>
</div>
{download && (
<a
// onClick={handleDownload}
className="origin"
className="font-semibold text-sm text-gray-600 hover:underline hover:text-white"
download={name}
type={type}
href={downloadLink || originUrl}