Skip to content

Commit

Permalink
Fixes make campaign card
Browse files Browse the repository at this point in the history
  • Loading branch information
nubis committed Mar 27, 2024
1 parent 7e2d63d commit 154f530
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion pwa/src/views/about.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Box, Button, Typography } from '@mui/material';
import { useTranslate } from 'react-admin';
import { BareLayout } from './layout';
import { green } from '../components/theme';
import AsamiLogo from '../assets/logo.svg?react';
import { messages, browserLocale } from '../i18n';
Expand Down
2 changes: 0 additions & 2 deletions pwa/src/views/advertiser/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ import { viewPostUrl } from '../../lib/campaign';
import { Pagination, Datagrid, TextField, FunctionField} from 'react-admin';
import { useListController, ListContextProvider, useTranslate } from 'react-admin';
import { getAuthKeys } from '../../lib/auth_provider';
import ClaimAccountButton from '../claim_account';
import { CampaignRequestCard } from './campaign_request_card';
import { MakeCampaignCard } from './make_campaign_card';
import BalanceCard from "../balance_card";

const Dashboard = () => {
useAuthenticated();
const translate = useTranslate();

const {data, isLoading} = useGetOne(
"Account",
Expand Down
4 changes: 2 additions & 2 deletions pwa/src/views/advertiser/make_campaign_card.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { useSafeSetState, useTranslate } from "react-admin";
import { LinearProgress, Alert, Box, Button, CardContent, Typography } from "@mui/material";
import { Dialog } from '@mui/material';
import { etherToHex } from '../../lib/formatters';
import { formatAddress } from '../../lib/formatters';
import { toBeHex, zeroPadValue, parseEther } from "ethers";
import { DeckCard } from '../layout';
import { useContracts } from "../../components/contracts_context";
import { Head2, light } from '../../components/theme';
import { parseCampaignSiteAndContentId, defaultValidUntil } from '../../lib/campaign';
import { formatAddress } from '../../lib/formatters';
import Paper from '@mui/material/Paper';
import { Form, TextInput, SaveButton, useNotify } from 'react-admin';
import ContentCopyIcon from '@mui/icons-material/ContentCopy';
Expand Down
1 change: 0 additions & 1 deletion pwa/src/views/balance_card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ const Done = ({account}) => {

const BalanceWithAddButton = ({symbol, account}) => {
const notify = useNotify();
const translate = useTranslate();
const { contracts } = useContracts();

const balance = symbol == "DOC" ? account.docBalance : account.asamiBalance;
Expand Down
2 changes: 1 addition & 1 deletion pwa/src/views/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useSafeSetState, useStore, useListController, CoreAdminContext, useGetL
import { TwitterTweetEmbed } from 'react-twitter-embed';
import { useNavigate } from 'react-router-dom';
import { BareLayout, DeckCard } from './layout';
import { Head2, Head3, yellow, light, green } from '../components/theme';
import { Head2, Head3, light, green } from '../components/theme';
import AsamiLogo from '../assets/logo.svg?react';
import { useContracts } from "../components/contracts_context";
import FacebookLogin from '@greatsumini/react-facebook-login';
Expand Down
2 changes: 1 addition & 1 deletion pwa/src/views/member/campaigns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import InstagramIcon from '@mui/icons-material/Instagram';
import XIcon from '@mui/icons-material/X';
import truncate from 'lodash/truncate';

export const CampaignHeader = ({handle, campaign, icon, children}) => {
export const CampaignHeader = ({handle, icon, children}) => {
const translate = useTranslate();

return (<>
Expand Down
4 changes: 2 additions & 2 deletions pwa/src/views/member/handle_settings.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { useTranslate} from "react-admin";
import { DeckCard } from '../layout';
import { Box, Chip, CardContent, Skeleton, Typography } from "@mui/material";
import { Box, CardContent, Skeleton, Typography } from "@mui/material";
import { formatEther } from "ethers";
import { Head2 } from '../../components/theme';
import { SimpleForm, CreateBase, TextInput, SaveButton, useNotify } from 'react-admin';
import { TextField, FunctionField, SimpleShowLayout} from 'react-admin';
import { FunctionField, SimpleShowLayout} from 'react-admin';
import { Stack } from '@mui/material';

export const HandleSettings = ({handles, handleRequests, site, namespace, handleMinLength, handleMaxLength, icon, verificationPost}) => {
Expand Down

0 comments on commit 154f530

Please sign in to comment.