mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 03:26:41 +07:00
moved components to TypeScript
This commit is contained in:
parent
85b8860862
commit
0a01c91271
54 changed files with 2771 additions and 5134 deletions
|
@ -1,19 +0,0 @@
|
|||
import React from 'react';
|
||||
import { STICKERS } from '$constants/stickers';
|
||||
|
||||
type Props = {
|
||||
set: String,
|
||||
sticker: String,
|
||||
};
|
||||
|
||||
export const StickerIcon = ({ set, sticker }: Props) => (
|
||||
<div
|
||||
className="cursor-icon-sticker"
|
||||
style={{
|
||||
backgroundImage: `url(${STICKERS[set].url}`,
|
||||
backgroundPosition: `-${STICKERS[set].layers[sticker].off * 100}% 50%`,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
//
|
Loading…
Add table
Add a link
Reference in a new issue