Skip to content

Commit

Permalink
fix: #8
Browse files Browse the repository at this point in the history
  • Loading branch information
reyzitwo committed Jun 24, 2023
1 parent c5e1366 commit 2acde7b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kokateam/router-vkminiapps",
"version": "0.0.3",
"version": "0.0.4",
"description": "Routing library for VK Mini Apps",
"main": "lib/index.js",
"repository": "https://github.com/kokateam/router-vkminiapps",
Expand Down
7 changes: 6 additions & 1 deletion src/components/Epic.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import React, { FC, useEffect } from "react";
import { useRecoilState } from "recoil";

import { Epic as VKEpic, EpicProps } from "@vkontakte/vkui";
import { Epic as VKEpic } from "@vkontakte/vkui";
import bridge from "@vkontakte/vk-bridge";
import { structure, history } from "../storage/atoms";

interface EpicProps extends React.HTMLAttributes<HTMLDivElement> {
tabbar?: React.ReactNode;
children: React.ReactNode;
}

const Epic: FC<EpicProps> = (props) => {
const [, setStructure] = useRecoilState(structure);
const [historyState, setHistory] = useRecoilState(history);
Expand Down
12 changes: 11 additions & 1 deletion src/components/View.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import React, { FC } from "react";

import { View as VKView, ViewProps } from "@vkontakte/vkui";
import { View as VKView } from "@vkontakte/vkui";
import { useRouterPanel } from "../hooks/hooks";

export interface ViewProps {
id: string;
popout?: React.ReactNode;
modal?: React.ReactNode;
onTransition?(params: { isBack: boolean; from: string; to: string }): void;
onSwipeBackStart?(): void;
onSwipeBackCancel?(): void;
children: React.ReactNode;
}

const View: FC<ViewProps> = (props) => {
const { panel, toPanel } = useRouterPanel();

Expand Down

0 comments on commit 2acde7b

Please sign in to comment.