Skip to content

Commit

Permalink
Fix bugs in tailwind.config to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyd-eth committed Oct 3, 2023
1 parent 22f72f6 commit 3499787
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { useForm } from 'antd/lib/form/Form'
import { NftRewardsFormProps } from 'components/NftRewards/AddNftCollectionForm'
import {
EditingFundingCycleConfig,
useEditingFundingCycleConfig,
} from 'components/v2v3/V2V3Project/V2V3ProjectSettings/hooks/useEditingFundingCycleConfig'
import { useReconfigureFundingCycle } from 'components/v2v3/V2V3Project/V2V3ProjectSettings/hooks/useReconfigureFundingCycle'
import { JB721GovernanceType } from 'models/nftRewards'
import { useState } from 'react'
import { useAppSelector } from 'redux/hooks/useAppSelector'
Expand All @@ -10,11 +15,6 @@ import {
pinNftCollectionMetadata,
pinNftRewards,
} from 'utils/nftRewards'
import {
EditingFundingCycleConfig,
useEditingFundingCycleConfig,
} from '../../../ReconfigureFundingCycleSettingsPage/hooks/useEditingFundingCycleConfig'
import { useReconfigureFundingCycle } from '../../../ReconfigureFundingCycleSettingsPage/hooks/useReconfigureFundingCycle'

export const useSettingsLaunchNftsForm = () => {
const [form] = useForm<NftRewardsFormProps>()
Expand Down
18 changes: 13 additions & 5 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
/** @type {import('tailwindcss').Config} */

const defaultTheme = require('tailwindcss/defaultTheme')

/**
* @typedef { import('tailwindcss').DarkModeConfig } DarkModeConfig
*/

/** @type {DarkModeConfig} */
const darkModeValue = 'class' // Use class for now, switch to media later

module.exports = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx}',
],
darkMode: 'class', // Use class for now, switch to media later
darkMode: darkModeValue,
important: true,
theme: {
fontFamily: {
Expand Down Expand Up @@ -43,12 +51,12 @@ module.exports = {
},
keyframes: {
rise: {
'0%': { transform: 'translate(-50%, 100%)', opacity: 0 },
'100%': { transform: 'translate(0%, 0%)', opacity: 1 },
'0%': { transform: 'translate(-50%, 100%)', opacity: '0' },
'100%': { transform: 'translate(0%, 0%)', opacity: '1' },
},
set: {
'0%': { transform: 'translate(0%, 0%)', opacity: 1 },
'100%': { transform: 'translate(50%, 100%)', opacity: 0 },
'0%': { transform: 'translate(0%, 0%)', opacity: '1' },
'100%': { transform: 'translate(50%, 100%)', opacity: '0' },
},
},
animation: {
Expand Down

0 comments on commit 3499787

Please sign in to comment.