-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic UI. Waiting Cairo contract to be finish for get and claim_stream
- Loading branch information
Showing
9 changed files
with
163 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { | ||
Box, | ||
Text, | ||
} from "@chakra-ui/react"; | ||
import { LockupLinearStreamInterface } from "../../types"; | ||
|
||
interface IStreamCard { | ||
lockupLinear?:LockupLinearStreamInterface | ||
} | ||
/** @TODO get component view ui with call claim reward for recipient visibile */ | ||
export const StreamCard = ({lockupLinear}:IStreamCard) => { | ||
return ( | ||
<> | ||
<Box> | ||
|
||
|
||
</Box> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import { | ||
Tabs, | ||
TabList, | ||
TabPanels, | ||
Tab, | ||
TabPanel, | ||
Box, | ||
Text, | ||
} from "@chakra-ui/react"; | ||
|
||
/** @TODO getters Cairo contracts, Indexer */ | ||
export const StreamViewContainer = () => { | ||
return ( | ||
<> | ||
<Tabs> | ||
<TabList> | ||
<Tab>All streams</Tab> | ||
<Tab>As recipient</Tab> | ||
<Tab>As sender</Tab> | ||
<Tab>Search</Tab> | ||
</TabList> | ||
|
||
<TabPanels> | ||
<TabPanel> | ||
<AllStreamComponent></AllStreamComponent> | ||
</TabPanel> | ||
<TabPanel> | ||
<RecipientStreamComponent></RecipientStreamComponent> | ||
|
||
</TabPanel> | ||
<TabPanel> | ||
<p>three!</p> | ||
</TabPanel> | ||
<TabPanel> | ||
<SearchStreamComponent></SearchStreamComponent> | ||
</TabPanel> | ||
</TabPanels> | ||
</Tabs> | ||
</> | ||
); | ||
}; | ||
|
||
/** @TODO Cairo spec to be defined. */ | ||
const AllStreamComponent = () => { | ||
return ( | ||
<Box> | ||
<Text>Find all streams</Text> | ||
<Text>Coming soon</Text> | ||
</Box> | ||
); | ||
}; | ||
|
||
|
||
/** @TODO Cairo spec recipient component */ | ||
const RecipientStreamComponent = () => { | ||
return ( | ||
<Box> | ||
<Text>Find here your stream</Text> | ||
<Text>Coming soon</Text> | ||
</Box> | ||
); | ||
}; | ||
|
||
/** @TODO add search stream components. Spec to be defined. */ | ||
const SearchStreamComponent = () => { | ||
return ( | ||
<Box> | ||
<Text>Coming soon</Text> | ||
</Box> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters