From 30dd89f096f1d203b1726dd6231dfcc3ca807013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=83=D0=BB?= Date: Thu, 14 Dec 2023 00:48:57 +0300 Subject: [PATCH] fix: fix tabs --- .../SettingsModal/SettingsView/index.tsx | 20 +++++++--------- .../SourcesTableModal/SourcesView/index.tsx | 24 +++++++------------ 2 files changed, 17 insertions(+), 27 deletions(-) diff --git a/src/components/SettingsModal/SettingsView/index.tsx b/src/components/SettingsModal/SettingsView/index.tsx index 7bc62e741..78b66bf25 100644 --- a/src/components/SettingsModal/SettingsView/index.tsx +++ b/src/components/SettingsModal/SettingsView/index.tsx @@ -6,7 +6,7 @@ import { useEffect, useState } from 'react' import styled from 'styled-components' import { Flex } from '~/components/common/Flex' import { Text } from '~/components/common/Text' -import { getAboutData, TAboutParams } from '~/network/fetchSourcesData' +import { TAboutParams, getAboutData } from '~/network/fetchSourcesData' import { useUserStore } from '~/stores/useUserStore' import { colors } from '~/utils/colors' import { UserPermissions } from '../UserPermissions' @@ -101,16 +101,14 @@ export const SettingsView: React.FC = ({ onClose }) => { {isAdmin && } - {isAdmin && ( - <> - - {!loading ? : <>} - - - {!loading ? : <>} - - - )} + + + {!loading ? : <>} + + + {!loading ? : <>} + + diff --git a/src/components/SourcesTableModal/SourcesView/index.tsx b/src/components/SourcesTableModal/SourcesView/index.tsx index 2ebd73297..a6ad00055 100644 --- a/src/components/SourcesTableModal/SourcesView/index.tsx +++ b/src/components/SourcesTableModal/SourcesView/index.tsx @@ -50,26 +50,18 @@ export const SourcesView = () => { - {isAdmin && ( - <> - - - - )} + {isAdmin && } + {isAdmin && } - {isAdmin && ( - <> - - - - - - - - )} + + + + + + ) }