Skip to content

Origin/job offer - #64

Open
Yulllia wants to merge 9 commits into
developfrom
origin/JobOffer
Open

Yulllia wants to merge 9 commits into
developfrom
origin/JobOffer

Conversation

@Yulllia

@Yulllia Yulllia commented Oct 14, 2022

Copy link
Copy Markdown

-adding sendOffer frontend button and Popup window
image

@vercel

vercel Bot commented Oct 14, 2022

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
devs-heads-fe ✅ Ready (Inspect) Visit Preview Oct 16, 2022 at 8:37PM (UTC)

@lyudad

lyudad commented Oct 16, 2022

Copy link
Copy Markdown
Contributor

Снимок экрана 2022-10-16 в 17 28 21

const openNotificationWithIcon = (type: NotificationType) => {
notification[type]({
message:
type === 'success' ? `${t('SendOfferPopup.success')}` : `${t('SendOfferPopup.error')}`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. cont compare with string, 2) never compare with translations file. only constants could be compared

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

.catch(() => openNotificationWithIcon('error'));
setIsShown(false);
resetInput();
};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move logic to custom hook

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants