Currently the MatchDetails[1] component does not load any information from an API, it uses react props to load the information. This makes it impossible to share a link to a Match Details page since the Landing page must be loaded first to pass the match info. We should enable users to share the match details page. This may require a new endpoint in dotalytics-api to load a single match by ID, or we could reuse the getMatches API and filter down to the single match ID passed to the MatchDetails component.
[1] https://github.com/trevormccasland/dotalytics/blob/main/src/components/MatchDetails.tsx
Currently the MatchDetails[1] component does not load any information from an API, it uses react props to load the information. This makes it impossible to share a link to a Match Details page since the Landing page must be loaded first to pass the match info. We should enable users to share the match details page. This may require a new endpoint in dotalytics-api to load a single match by ID, or we could reuse the getMatches API and filter down to the single match ID passed to the MatchDetails component.
[1] https://github.com/trevormccasland/dotalytics/blob/main/src/components/MatchDetails.tsx