-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
GoogleCalender Button, ics File Download Button: text fixed in community/events #3471
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,10 @@ import { useTranslation } from '../../utils/i18n'; | |
import IconGoogleCalendar from '../icons/GoogleCalendar'; | ||
import Button from './Button'; | ||
|
||
|
||
// Importing text to display on button from common.json | ||
import { githubButton } from '../../public/locales/en/common.json'; | ||
|
||
interface IGoogleCalendarButtonProps extends IButtonDefaultProps {} | ||
|
||
/** | ||
|
@@ -18,7 +22,7 @@ interface IGoogleCalendarButtonProps extends IButtonDefaultProps {} | |
* @param {string} props.className - The class name to be applied to the button. | ||
*/ | ||
export default function GoogleCalendarButton({ | ||
text = 'googleCalendarBtn', | ||
text = githubButton, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Fix incorrect text key and refactor localization The component is using - text = githubButton,
+ text = 'googleCalendarBtn', This change:
|
||
href, | ||
target = '_blank', | ||
iconPosition = ButtonIconPosition.LEFT, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra blank line and fix incorrect import
There are two issues here:
githubButton
for a Google Calendar button)📝 Committable suggestion
🧰 Tools
🪛 eslint
[error] 10-11: Delete
⏎
(prettier/prettier)
[error] 10-11: More than 1 blank line not allowed.
(no-multiple-empty-lines)