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

Create a reusable component to manage going forward and backward for cards #363

Open
ijemmao opened this issue May 25, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@ijemmao
Copy link
Collaborator

ijemmao commented May 25, 2023

Is your feature request related to a problem? Please describe.
We want our navigation controls to be consistent across the board when navigating between sentences that need audio recorded or verified, and words that need Igbo definitions. Currently, the Igbo definitions navigation system looks different from the example sentences' navigation system.

The look of the navigation system within VerifySentenceAudio.tsx and RecordSentenceAudio.tsx is the same aesthetic we want for Igbo definitions.

Describe the solution you'd like
Create a reusable React component that's able to take in callback methods that will get called when the forward and back buttons are called. Additionally, the component should keep track of the total number of elements in the array to paginate through and the current index within the array of elements.

Then use this reusable components within the following pages:

  • VerifySentenceAudio.tsx
  • RecordSentenceAudio.tsx
  • IgboDefinitions.tsx

We want to change this
Xnapper-2023-05-24-20 30 27

Into this
Xnapper-2023-05-24-20 29 50

@ijemmao ijemmao added the enhancement New feature or request label May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant