mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Use new alias
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import client from 'src/api/client'
|
||||
import client from '@api/client'
|
||||
|
||||
export const accountFetch = async (key: string, { id }: { id: string }) => {
|
||||
const res = await client({
|
||||
|
@ -1,4 +1,4 @@
|
||||
import client from 'src/api/client'
|
||||
import client from '@api/client'
|
||||
|
||||
export const emojisFetch = async () => {
|
||||
const res = await client({
|
||||
|
@ -1,4 +1,4 @@
|
||||
import client from 'src/api/client'
|
||||
import client from '@api/client'
|
||||
|
||||
export const instanceFetch = async (
|
||||
key: string,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import client from 'src/api/client'
|
||||
import client from '@api/client'
|
||||
|
||||
export const listsFetch = async () => {
|
||||
const res = await client({
|
||||
|
@ -1,4 +1,4 @@
|
||||
import client from 'src/api/client'
|
||||
import client from '@api/client'
|
||||
|
||||
export const relationshipFetch = async (
|
||||
key: string,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import client from 'src/api/client'
|
||||
import client from '@api/client'
|
||||
|
||||
export const searchFetch = async (
|
||||
{} = {},
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { uniqBy } from 'lodash'
|
||||
|
||||
import client from 'src/api/client'
|
||||
import client from '@api/client'
|
||||
|
||||
export const timelineFetch = async (
|
||||
key: string,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { store } from 'src/store'
|
||||
import { store } from '@root/store'
|
||||
|
||||
const relativeTime = (date: string) => {
|
||||
const units = {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'
|
||||
|
||||
import { RootState } from 'src/store'
|
||||
import client from 'src/api/client'
|
||||
import { RootState } from '@root/store'
|
||||
import client from '@api/client'
|
||||
|
||||
export type InstancesState = {
|
||||
local: {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit'
|
||||
|
||||
import { RootState } from 'src/store'
|
||||
import { RootState } from '@root/store'
|
||||
// import client from 'src/api/client'
|
||||
|
||||
export type SettingsState = {
|
||||
|
@ -1,8 +1,8 @@
|
||||
import React, { createContext, useContext, useEffect, useState } from 'react'
|
||||
import { useColorScheme } from 'react-native-appearance'
|
||||
import { useSelector } from 'react-redux'
|
||||
import { ColorDefinitions, getTheme } from 'src/utils/styles/themes'
|
||||
import { getSettingsTheme } from '../slices/settingsSlice'
|
||||
import { ColorDefinitions, getTheme } from '@utils/styles/themes'
|
||||
import { getSettingsTheme } from '@utils/slices/settingsSlice'
|
||||
|
||||
type ContextType = {
|
||||
mode: 'light' | 'dark'
|
||||
|
Reference in New Issue
Block a user