import React from 'react'; import { SoundList } from '../../components'; import { SoundType } from '../../model'; import { axios } from '../../services'; interface Props {} interface State { clipList: SoundType[]; } export class Clips extends React.Component { constructor(props: Props) { super(props); this.state = { clipList: [], }; } componentDidMount() { this.getClipList(); } private getClipList() { axios .get('/api/cliplist') .then((response) => { this.setState({ clipList: response.data, }); }) .catch((error: any) => { console.error(error.response.data); }); } render() { return (
{/* no need for permissions on this component - set false */}
); } }