d3george / slash-admin

A modern react admin. It is based on react 18, vite and TypeScript. It's fast !
https://admin.slashspaces.com/
MIT License
1.36k stars 197 forks source link

Theme Fix: Error Messages Not Following Dark Theme #72

Open joaoflaviosantos opened 1 week ago

joaoflaviosantos commented 1 week ago

Hello @d3george,

Firstly, I want to commend you on the excellent work with this template; it has been incredibly valuable to me!

I need your assistance to address a visual bug where error messages do not adhere to the dark theme:

image

There are two instances where this occurs, as listed below, and they do not adjust to the dark theme when it is applied:

src\components\upload\utils.ts

  if (!isJpgOrPng) {
    message.error('You can only upload JPG/PNG file!');
  }

src\api\apiClient.ts

    const errMsg = response?.data?.message || message || t('sys.api.errorMessage');
    Message.error(errMsg);

Thank you in advance for your help!

Best regards,

João Flavio Santos

d3george commented 1 week ago

Thank you for your report. I will fix it in the next version