From b4601d13cfcbc297e0c2ad6d7ae3f606271ebde0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Fri, 30 Dec 2022 22:25:03 +0100 Subject: [PATCH] ok, this works MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/reducers/admin.ts | 12 ++---------- app/styles/components/modal.scss | 11 ----------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/app/soapbox/reducers/admin.ts b/app/soapbox/reducers/admin.ts index 0767449e9..0b1e5438f 100644 --- a/app/soapbox/reducers/admin.ts +++ b/app/soapbox/reducers/admin.ts @@ -54,18 +54,10 @@ export interface ReducerAdminReport extends AdminReportRecord { statuses: ImmutableList, } -// Umm... based? -// https://itnext.io/typescript-extract-unpack-a-type-from-a-generic-baca7af14e51 -// type InnerRecord = R extends ImmutableRecord ? TProps : never; - -// type InnerState = InnerRecord; - // Lol https://javascript.plainenglish.io/typescript-essentials-conditionally-filter-types-488705bfbf56 -// type FilterConditionally = Pick; +type FilterConditionally = Pick; -// type SetKeys = keyof FilterConditionally>; - -type SetKeys = 'openReports' | 'latestUsers' | 'awaitingApproval'; +type SetKeys = keyof FilterConditionally>; type APIReport = { id: string, state: string, statuses: any[] }; type APIUser = { id: string, email: string, nickname: string, registration_reason: string }; diff --git a/app/styles/components/modal.scss b/app/styles/components/modal.scss index f88958c9c..407a6d56b 100644 --- a/app/styles/components/modal.scss +++ b/app/styles/components/modal.scss @@ -234,17 +234,6 @@ color: var(--primary-text-color--faint); background-color: var(--background-color); } - - &.onboarding-modal__done, - &.onboarding-modal__next { - color: var(--primary-text-color); - - &:hover, - &:focus, - &:active { - color: var(--primary-text-color); - } - } } }