diff --git a/studio/components/SalaryCsvInput/SalariesInput.tsx b/studio/components/SalaryCsvInput/SalariesInput.tsx index 22a6e9a10..d84cb3bec 100644 --- a/studio/components/SalaryCsvInput/SalariesInput.tsx +++ b/studio/components/SalaryCsvInput/SalariesInput.tsx @@ -1,5 +1,5 @@ import { set, StringInputProps } from "sanity"; -import { Box, Grid, Inline, Stack, Text, useTheme, useToast } from "@sanity/ui"; +import { Box, Grid, Inline, Stack, Text, useToast } from "@sanity/ui"; import { ChangeEvent } from "react"; import styles from "./salariesInput.module.css"; import { UploadIcon } from "@sanity/icons"; @@ -15,8 +15,6 @@ const UPLOAD_CSV_INPUT_ID = "upload-csv-input"; export const SalariesInput = (props: StringInputProps) => { const toast = useToast(); - const theme = useTheme(); - const prefersDark = theme.sanity.v2?.color._dark ?? false; const salaries = props.value === undefined @@ -80,7 +78,7 @@ export const SalariesInput = (props: StringInputProps) => { } return ( - +
{/* @@ -118,18 +116,12 @@ export const SalariesInput = (props: StringInputProps) => { .toSorted(([a], [b]) => Number(b) - Number(a)) .map(([year, salary], index) => ( <> -
+
-
+