Skip to content

Commit

Permalink
Fix eslint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
puranban authored and AdityaKhatri committed Jan 30, 2024
1 parent ce3a55c commit 4543c34
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 61 deletions.
4 changes: 4 additions & 0 deletions app/Base/Page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function useYear(clientCode: string) {
}

function CountryProfileWithYear(props: Omit<CountryProfileProps, 'endYear'> & { clientCode: string }) {
// eslint-disable-next-line react/destructuring-assignment
const { loading, year } = useYear(props.clientCode);
if (loading || !year) {
return null;
Expand All @@ -76,6 +77,7 @@ function CountryProfileWithYear(props: Omit<CountryProfileProps, 'endYear'> & {
}

function GiddWithYear(props: Omit<GiddProps, 'endYear'>) {
// eslint-disable-next-line react/destructuring-assignment
const { loading, year } = useYear(props.clientCode);
if (loading || !year) {
return null;
Expand All @@ -89,6 +91,7 @@ function GiddWithYear(props: Omit<GiddProps, 'endYear'>) {
}

function ConflictWidgetWithYear(props: Omit<ConflictWidgetProps, 'endYear'>) {
// eslint-disable-next-line react/destructuring-assignment
const { loading, year } = useYear(props.clientCode);
if (loading || !year) {
return null;
Expand All @@ -102,6 +105,7 @@ function ConflictWidgetWithYear(props: Omit<ConflictWidgetProps, 'endYear'>) {
}

function DisasterWidgetWithYear(props: Omit<DisasterWidgetProps, 'endYear'>) {
// eslint-disable-next-line react/destructuring-assignment
const { loading, year } = useYear(props.clientCode);
if (loading || !year) {
return null;
Expand Down
4 changes: 0 additions & 4 deletions app/components/FigureAnalysis/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
border: var(--tui-width-separator-thin) solid var(--tui-color-separator);
border-top: 0;

.separator {
border-bottom: var(--tui-width-separator-thin) solid var(--tui-color-separator);
}

.details {
.collapsible-children {
padding-bottom: var(--tui-spacing-medium);
Expand Down
41 changes: 0 additions & 41 deletions app/components/NumberBlock/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,45 +14,4 @@
color: var(--tui-color-text-label);
font-size: var(--tui-font-size-small);
}

&.conflict {
.label,
.value {
color: var(--color-conflict);
}
}

&.disaster {
.label,
.value {
color: var(--color-disaster);
}
}

&.medium {
.value {
font-size: var(--tui-font-size-super-large);
}
}

&.large {
.value {
font-size: var(--tui-font-size-massive-large);
}
}

&.small {
.value {
font-size: var(--tui-font-size-large);
}
}

&.xsmall {
.value {
font-size: var(--tui-font-size-medium);
}
.label {
font-size: var(--tui-font-size-small);
}
}
}
4 changes: 0 additions & 4 deletions app/components/ProgressLine/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
.title {
flex-grow :1;
}

.numeral {
flex-shrink: 0;
}
}

.bottom {
Expand Down
1 change: 0 additions & 1 deletion app/components/Tabs/Tab/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
}

&.secondary {
/* border-radius: calc(1em + #{var(--tui-spacing-medium)}); */
border-radius: 0.25rem;

background-color: var(--tui-color-background);
Expand Down
3 changes: 0 additions & 3 deletions app/components/tableHelpers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export function createExternalLinkColumn<D, K>(
filterType: options?.filterType,
orderable: options?.orderable,
hideable: options?.hideable,
titleClassName: styles.title,
},
cellRenderer: ExternalLink,
cellRendererParams: (_: K, datum: D): ExternalLinkProps => {
Expand Down Expand Up @@ -93,7 +92,6 @@ export function createTextColumn<D, K>(
filterType: options?.filterType,
orderable: options?.orderable,
hideable: options?.hideable,
titleClassName: styles.title,
},
cellRenderer: Text,
columnWidth: options?.columnWidth,
Expand Down Expand Up @@ -137,7 +135,6 @@ export function createNumberColumn<D, K>(
filterType: options?.filterType,
orderable: options?.orderable,
hideable: options?.hideable,
titleClassName: styles.title,
},
cellRenderer: Numeral,
columnWidth: options?.columnWidth,
Expand Down
8 changes: 0 additions & 8 deletions app/components/tableHelpers/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
font-size: var(--tui-font-size-medium)!important;
}

&.conflict {
color: var(--color-conflict);
}

&.disaster {
color: var(--color-disaster);
}

&.number-header {
* {
justify-content: flex-end;
Expand Down

0 comments on commit 4543c34

Please sign in to comment.