Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

"Language" is hardcoded in Top Banner component #6

Open
timarney opened this issue May 1, 2019 · 2 comments
Open

"Language" is hardcoded in Top Banner component #6

timarney opened this issue May 1, 2019 · 2 comments

Comments

@timarney
Copy link
Member

timarney commented May 1, 2019

Unable to set the Language link in the top banner.

Screen Shot 2019-05-01 at 3 13 54 PM

<Container
          flex="1 1 auto"
          mr={3}
          css={css`
            text-align: right;
          `}
        />
        <FooterLink href="#" color="white" mr={3}>
          Language
        </FooterLink>
      </Container>

@evadb
Copy link

evadb commented May 14, 2019

👍 good catch! Tbh I pulled this out quickly from RCMP project which had a bunch of language stuff hard coded in by doing the language query.

What would you think of a solution where the language is passed as a prop? Although there would still need to be some logic passed in somehow to do language switching 🤔

@timarney
Copy link
Member Author

I think a prop makes the most sense for a quick fix and to move things forward.

Ultimately I think the end user is going to need more control overall.

i.e to control a language desktop vs mobile + when more languages possibly a dropdown menu. Accepting a child prop etc...

Kent C Dodds has some interesting patterns of Egghead for building components that allow a lot of flexibility .... that's a much larger discussion for later.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants