mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
remove bars components
This commit is contained in:
parent
92efb1e97e
commit
8ec77986bf
7 changed files with 13 additions and 3 deletions
|
@ -1,8 +1,9 @@
|
||||||
import React, { FC } from 'react';
|
import React, { FC } from 'react';
|
||||||
|
|
||||||
import { SubmitBarSSR } from '~/components/bars/SubmitBar/ssr';
|
|
||||||
import { Authorized } from '~/components/containers/Authorized';
|
import { Authorized } from '~/components/containers/Authorized';
|
||||||
|
|
||||||
|
import { SubmitBarSSR } from './components/SubmitBar/ssr';
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
prefix?: string;
|
prefix?: string;
|
||||||
isLab?: boolean;
|
isLab?: boolean;
|
||||||
|
|
|
@ -1,12 +1,21 @@
|
||||||
import React, { VFC } from 'react';
|
import React, { VFC } from 'react';
|
||||||
|
|
||||||
import { PlayerBar } from '~/components/bars/PlayerBar';
|
|
||||||
import { useAudioPlayer } from '~/utils/providers/AudioPlayerProvider';
|
import { useAudioPlayer } from '~/utils/providers/AudioPlayerProvider';
|
||||||
|
|
||||||
|
import { PlayerBar } from './components/PlayerBar';
|
||||||
|
|
||||||
interface PlayerViewProps {}
|
interface PlayerViewProps {}
|
||||||
|
|
||||||
const PlayerView: VFC<PlayerViewProps> = () => {
|
const PlayerView: VFC<PlayerViewProps> = () => {
|
||||||
const { file, play, toPercent: seek, stop, pause, status, progress } = useAudioPlayer();
|
const {
|
||||||
|
file,
|
||||||
|
play,
|
||||||
|
toPercent: seek,
|
||||||
|
stop,
|
||||||
|
pause,
|
||||||
|
status,
|
||||||
|
progress,
|
||||||
|
} = useAudioPlayer();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PlayerBar
|
<PlayerBar
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue