Groww-OSS / ui-toolkit

Standard UI Library adopted in Groww. Customized as per requirement and preferences of devs in Groww.
MIT License
0 stars 0 forks source link

Anchor link "to" prop should be of LocationDescriptor | string Type #63

Open IBZoIx7B4SB7gnygKVuE6hwDSXIVipDpmLMzTc5 opened 3 years ago

IBZoIx7B4SB7gnygKVuE6hwDSXIVipDpmLMzTc5 commented 3 years ago

it will add functionality of adding state in location while routing from Anchorlink

QYQKJikVDuSxdXxHplIapIxLN8ibP0IfVSRhNnP commented 3 years ago

This seems legit. attaching type for reference. Is the pr created. If not I will create one

export type LocationDescriptorObject = {
    pathname?: Pathname; 
    search?: Search;
    query?: Query;
    state?: LocationState;
};