-
Notifications
You must be signed in to change notification settings - Fork 24
Feat/vacancy card w/inertia #133
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
base: main
Are you sure you want to change the base?
Feat/vacancy card w/inertia #133
Conversation
ShaganKonstantin
commented
Oct 30, 2025
- Переписал карточку под новый дизайн/ с использованием Inertia
- Добавил провайдер mantine в main.tsx
- Добавил интерфейс VacancyCardProps
| import { Building2, MapPin } from "lucide-react"; | ||
| import { Link } from "@inertiajs/react"; | ||
|
|
||
| export const VacancyCard: React.FC<VacancyCardProps> = ({ id, title, url, salary, employment, company, city, skills }) => { |
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.
Я бы сделал немного по другому, в передаваемых значениях оставил бы только обобщений пропс, и деструктурировал его в теле компонента. Так строка с объявлением компонента была бы короче, и в деструктурированном пропсе удобно было бы доставать переменные с новой строки и в дальнейшем добавлять значения по умолчанию.
|
Теперь если нет каких-либо данных в карточке вместо пустоты показывается надпись по типу "Зарплата не указана" и т.д. |
|

