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

Can the show method intelligently prompts those parameters? #152

Open
george-es opened this issue Mar 28, 2024 · 1 comment
Open

Can the show method intelligently prompts those parameters? #152

george-es opened this issue Mar 28, 2024 · 1 comment

Comments

@george-es
Copy link

We create and register a pop -up window

type MProps = {
    name: string,
    age: number,
};

const M = NiceModal.create<MProps>(({ name, age }) => (
    <div>
        {name}-{age}
    </div>
));
NiceModal.register('M_MODAL', M);

When using it, you cannot intelligently indicate the parameters you need to pass

NiceModal.show('M_MODAL', {});
@gprst
Copy link

gprst commented Oct 27, 2024

Duplicate of #134?

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

No branches or pull requests

2 participants