Skip to content

Commit

Permalink
fix: calendar button icon size (#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp authored Aug 30, 2023
1 parent d1a29a7 commit 5f1e7dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/components/Proposal/View/CalendarAlertButton.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.CalendarAlertButton__IconContainer {
display: flex;
padding: 0 2px;
}
5 changes: 4 additions & 1 deletion src/components/Proposal/View/CalendarAlertButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react'
import useFormatMessage from '../../../hooks/useFormatMessage'
import CalendarAdd from '../../Icon/CalendarAdd'

import './CalendarAlertButton.css'
import SidebarButton from './SidebarButton'

interface Props {
Expand All @@ -15,7 +16,9 @@ function CalendarAlertButton({ loading, disabled, onClick }: Props) {
const t = useFormatMessage()
return (
<SidebarButton loading={loading} disabled={disabled} onClick={onClick}>
<CalendarAdd size="20" />
<div className="CalendarAlertButton__IconContainer">
<CalendarAdd size="16" />
</div>
<span>{t('page.proposal_detail.calendar_button')}</span>
</SidebarButton>
)
Expand Down

0 comments on commit 5f1e7dd

Please sign in to comment.