Replace styled-components with bulma helpers (#1783)

Use Bulma helpers whenever possible instead of custom styled components.
This pull request replaces primarily color definitions, spacing and flex instructions.
This commit is contained in:
Florian Scholdei
2021-09-15 17:40:08 +02:00
committed by GitHub
parent 8a65660278
commit 2cb006d040
97 changed files with 1931 additions and 2244 deletions

View File

@@ -22,7 +22,7 @@
* SOFTWARE.
*/
import React, { useState } from "react";
import { Link as RouteLink, match, Redirect, Route, Switch, useRouteMatch } from "react-router-dom";
import { Link as RouteLink, Redirect, Route, Switch, useRouteMatch } from "react-router-dom";
import { useTranslation } from "react-i18next";
import { binder, ExtensionPoint } from "@scm-manager/ui-extensions";
import { Changeset, Link } from "@scm-manager/ui-types";
@@ -61,7 +61,6 @@ import { useIndexLinks, useRepository } from "@scm-manager/ui-api";
import styled from "styled-components";
const TagGroup = styled.span`
font-weight: bold;
& > * {
margin-right: 0.25rem;
}
@@ -159,7 +158,7 @@ const RepositoryRoot = () => {
const titleComponent = (
<>
<RouteLink to={`/repos/${repository.namespace}/`} className={"has-text-dark"}>
<RouteLink to={`/repos/${repository.namespace}/`} className="has-text-dark">
{repository.namespace}
</RouteLink>
/{repository.name}
@@ -220,7 +219,7 @@ const RepositoryRoot = () => {
afterTitle={
<div className="is-flex">
<ExtensionPoint name={"repository.afterTitle"} props={{ repository }} />
<TagGroup>
<TagGroup className="has-text-weight-bold">
<RepositoryFlags repository={repository} tooltipLocation="bottom" />
</TagGroup>
</div>