Not financial advice.
The money you earn when you are young is the most valuable money you will earn. If you make the money compound through investments or interest it will be worth much more in 30 years than it is now.
What an employer is prepared to pay you is often based on what previous employers were prepared to pay you. Making small and consistent increases in salary unlock higher and higher earning tiers. This suggests you should not stay in a job that refuses to give you a pay rise because you are sacrificing both current and future higher earnings.