mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
web app - basic theme
This commit is contained in:
25
web/src/FilesTabsPanel.js
Normal file
25
web/src/FilesTabsPanel.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import React from "react";
|
||||
import styled from "styled-components";
|
||||
|
||||
const files = [
|
||||
{ name: "app.js" },
|
||||
{ name: "BranchCategory", type: "table", selected: true },
|
||||
{ name: "ApplicationList" }
|
||||
];
|
||||
|
||||
const FileTabItem = styled.div`
|
||||
border-right: 1px solid white;
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
color: #338;
|
||||
}
|
||||
background-color: ${props => (props.selected ? "#eee" : "inherit")};
|
||||
`;
|
||||
|
||||
export default function FilesTabsPanel() {
|
||||
return files.map(file => <FileTabItem {...file}>{file.name}</FileTabItem>);
|
||||
}
|
||||
Reference in New Issue
Block a user