mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-24 10:37:16 +00:00
Remove LibraryButton
This commit is contained in:
parent
c26d76f2fd
commit
5828484983
3 changed files with 0 additions and 30 deletions
|
|
@ -1,16 +0,0 @@
|
|||
import React from "react";
|
||||
type Props = React.HTMLAttributes<HTMLDivElement>;
|
||||
|
||||
// TODO: This should be a `<button>` but I couldn't figure out how to style it with css grid
|
||||
const LibraryButton = (props: Props) => {
|
||||
const { children, ...passThroughProps } = props;
|
||||
return (
|
||||
<div className="library-button" {...passThroughProps}>
|
||||
<span className="library-button-left" />
|
||||
<span className="library-button-center">{children}</span>
|
||||
<span className="library-button-right" />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default LibraryButton;
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
import * as React from "react";
|
||||
import LibraryButton from "./LibraryButton";
|
||||
|
||||
export default class Sidebar extends React.Component {
|
||||
render() {
|
||||
|
|
@ -31,14 +30,6 @@ export default class Sidebar extends React.Component {
|
|||
<li>Internet TV</li>
|
||||
</ul>
|
||||
</div>
|
||||
<LibraryButton
|
||||
style={{
|
||||
width: "100%",
|
||||
marginTop: 1,
|
||||
}}
|
||||
>
|
||||
Library
|
||||
</LibraryButton>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import * as Selectors from "../../selectors";
|
|||
import { AppState, PlaylistTrack } from "../../types";
|
||||
import * as Utils from "../../utils";
|
||||
import * as FileUtils from "../../fileUtils";
|
||||
import LibraryButton from "./LibraryButton";
|
||||
import LibraryTable from "./LibraryTable";
|
||||
|
||||
interface StateProps {
|
||||
|
|
@ -75,10 +74,6 @@ class TracksTable extends React.Component<StateProps, State> {
|
|||
/>
|
||||
|
||||
<div style={{ marginTop: 2 }}>
|
||||
<LibraryButton>Play</LibraryButton>
|
||||
<LibraryButton>Enqueue</LibraryButton>
|
||||
<LibraryButton>Play all</LibraryButton>
|
||||
<LibraryButton>Enqueue all</LibraryButton>
|
||||
<span id="webamp-media-library-track-summary-duration">
|
||||
1 item [3:25]
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue