# Destructuring Props and creating prop interfaces

**URL:** <https://sef.discourse.group/t/destructuring-props-and-creating-prop-interfaces/307>\
**Category:** ScholarX\
**Created:** [June 23, 2021, 4:15pm UTC](https://sef.discourse.group/t/destructuring-props-and-creating-prop-interfaces/307 "2021-06-23T16:15:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjisvj](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/anjisvj/32/9_2.png) [@anjisvj](https://sef.discourse.group/u/anjisvj)\
**Post date:** [June 23, 2021, 4:15pm UTC](https://sef.discourse.group/t/destructuring-props-and-creating-prop-interfaces/307/1 "2021-06-23T16:15:38Z")

</div>

Currently, in our project in some files, we haven’t used props destructuring and some of the props don’t even have interfaces for the props. I’m going to work on this and I will update this thread throughout the process.

---

<div class="post-metadata">

**Author:** ![anjisvj](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/anjisvj/32/9_2.png) [@anjisvj](https://sef.discourse.group/u/anjisvj)\
**Post date:** [June 23, 2021, 4:19pm UTC](https://sef.discourse.group/t/destructuring-props-and-creating-prop-interfaces/307/2 "2021-06-23T16:19:22Z")

</div>

> <https://github.com/sef-global/scholarx-frontend/issues/189>
>
> \*\*Is your feature request related to a problem? Please describe.\*\*
> \- Please fol…low this thread,
> \- https://sef.discourse.group/t/destructuring-props-and-creating-prop-interfaces/307
> 
> \*\*Describe the solution you'd like\*\*
> \- Destructor the props
> \- Create interfaces for the props if needed

---

<div class="post-metadata">

**Author:** ![anjisvj](https://yyz2.discourse-cdn.com/free1/user_avatar/sef.discourse.group/anjisvj/32/9_2.png) [@anjisvj](https://sef.discourse.group/u/anjisvj)\
**Post date:** [June 25, 2021, 2:17pm UTC](https://sef.discourse.group/t/destructuring-props-and-creating-prop-interfaces/307/3 "2021-06-25T14:17:28Z")

</div>

Here’s the PR:

> <https://github.com/sef-global/scholarx-frontend/pull/190>
>
> \## Purpose
> 
> \- The purpose of this PR is to fix #189 
> 
> \## Goals
> 
> \- Improvin…g the code base
> 
> \## Approach
> 
> \- Desctructered the props
> \- Created the necessary interfaces
> 
> \## Checklist
> \- \[x\] This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
> \- \[x\] I have read and understood the development best practices guidelines ( http://bit.ly/sef-best-practices )
> \- \[x\] My code follows the style guidelines of this project
> \- \[x\] I have performed a self-review of my own code
> \- \[\] I have commented my code, particularly in hard-to-understand areas
> \- \[\] I have made corresponding changes to the documentation
