mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
chore: update web dependencies (#102)
* chore: update deps * chore: remove craco * chore: fix exports * fix: filters list indexer bg * fix: extend theme with correct color
This commit is contained in:
parent
c35744dc3a
commit
0076ea9129
9 changed files with 4316 additions and 7268 deletions
|
@ -21,7 +21,7 @@ function Protected() {
|
|||
|
||||
export const queryClient = new QueryClient();
|
||||
|
||||
function App() {
|
||||
export function App() {
|
||||
const authContext = AuthContext.useValue();
|
||||
const settings = SettingsContext.useValue();
|
||||
return (
|
||||
|
@ -39,6 +39,4 @@ function App() {
|
|||
) : null}
|
||||
</QueryClientProvider>
|
||||
)
|
||||
};
|
||||
|
||||
export default App;
|
||||
};
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import ReactDOM from 'react-dom';
|
||||
import './index.css';
|
||||
|
||||
import App from "./App";
|
||||
import { App } from "./App";
|
||||
|
||||
import { InitializeGlobalContext } from "./utils/Context";
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import formatDistanceToNowStrict from 'date-fns/formatDistanceToNowStrict'
|
||||
import React from 'react'
|
||||
import App from '../App'
|
||||
import { useTable, useFilters, useGlobalFilter, useSortBy, usePagination } from 'react-table'
|
||||
import APIClient from '../api/APIClient'
|
||||
import { useQuery } from 'react-query'
|
||||
|
@ -699,5 +698,3 @@ function DataTablee() {
|
|||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default App;
|
|
@ -160,7 +160,7 @@ function FilterListItem({ filter, idx }: FilterListItemProps) {
|
|||
</Link>
|
||||
</td>
|
||||
<td className="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">{filter.indexers && filter.indexers.map(t =>
|
||||
<span key={t.id} className="mr-2 inline-flex items-center px-2.5 py-0.5 rounded-md text-sm font-medium bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-400">{t.name}</span>)}</td>
|
||||
<span key={t.id} className="mr-2 inline-flex items-center px-2.5 py-0.5 rounded-md text-sm font-medium bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-gray-400">{t.name}</span>)}</td>
|
||||
<td className="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
|
||||
<Link to={`filters/${filter.id.toString()}`} className="text-indigo-600 dark:text-gray-200 hover:text-indigo-900 dark:hover:text-gray-400">
|
||||
Edit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue