Skip to content
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

Dynamic default value ERROR in weird case #64

Closed
stepan662 opened this issue Jan 2, 2024 · 2 comments
Closed

Dynamic default value ERROR in weird case #64

stepan662 opened this issue Jan 2, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@stepan662
Copy link
Contributor

I'm getting Dynamic default value error in this case:

import { Alert, Link } from '@mui/material';
import { T } from '@tolgee/react';

import { LINKS } from 'tg.constants/links';

const TOLGEE_APP = 'https://app.tolgee.io';

export function EeLicenseHint() {
  return (
    <Alert severity="info">
      <T
        keyName="ee_licence_key_hint"
        params={{
          a: (
            <Link
              href={`${TOLGEE_APP}${LINKS.GO_TO_SELF_HOSTED_BILLING.build()}`}
            />
          ),
        }}
      />
    </Alert>
  );
}

Seems like regression as it was not complaining in version 1.0.1, but it does in version 1.3.2.

@cyyynthia cyyynthia added the bug Something isn't working label Jan 2, 2024
@cyyynthia
Copy link
Collaborator

This may be related to #83, considering there is a self-closing tag?

@stepan662
Copy link
Contributor Author

Yeah, it's fixed 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants