feat: pr review fixes + changeset

Signed-off-by: Kamil Wolny <mrwolny@gmail.com>
This commit is contained in:
Kamil Wolny
2022-08-02 10:35:51 +01:00
parent d51e5223d6
commit ffd5e47fb5
7 changed files with 23 additions and 86 deletions
@@ -28,15 +28,17 @@ import {
import { IssueList } from './IssuesList';
import { NoRepositoriesInfo } from './NoRepositoriesInfo';
/**
* @public
*/
export type GitHubIssuesProps = {
itemsPerPage?: number;
itemsPerRepo?: number;
};
export const GitHubIssues = ({
itemsPerPage = 10,
itemsPerRepo = 40,
}: GitHubIssuesProps) => {
export const GitHubIssues = (props: GitHubIssuesProps) => {
const { itemsPerPage = 10, itemsPerRepo = 40 } = props;
const [isLoading, setIsLoading] = React.useState(true);
const [issuesByRepository, setIssuesByRepository] =
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Octokit } from '@octokit/rest';
import { Octokit } from 'octokit';
import {
useApi,
githubAuthApiRef,
+2
View File
@@ -18,3 +18,5 @@ export {
GitHubIssuesPage,
GitHubIssuesCard,
} from './plugin';
export type { GitHubIssuesProps } from './components/GitHubIssues';