Rename FE_BASE_PATH to FE_SUBDIRECTORY

This commit is contained in:
Alex Gleason
2021-09-05 13:21:39 -05:00
parent d20fdf1a3f
commit ea26e86a94
11 changed files with 28 additions and 28 deletions

View File

@@ -8,7 +8,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
import { supportsPassiveEvents } from 'detect-passive-events';
import { buildCustomEmojis } from '../../emoji/emoji';
import { join } from 'path';
import { FE_BASE_PATH } from 'soapbox/build_config';
import { FE_SUBDIRECTORY } from 'soapbox/build_config';
const messages = defineMessages({
emoji: { id: 'emoji_button.label', defaultMessage: 'Insert emoji' },
@@ -29,7 +29,7 @@ const messages = defineMessages({
let EmojiPicker, Emoji; // load asynchronously
const backgroundImageFn = () => join(FE_BASE_PATH, 'emoji', 'sheet_13.png');
const backgroundImageFn = () => join(FE_SUBDIRECTORY, 'emoji', 'sheet_13.png');
const listenerOptions = supportsPassiveEvents ? { passive: true } : false;
const categoriesSort = [
@@ -359,7 +359,7 @@ class EmojiPickerDropdown extends React.PureComponent {
<img
className={classNames('emojione', { 'pulse-loading': active && loading })}
alt='🙂'
src={join(FE_BASE_PATH, 'emoji', '1f602.svg')}
src={join(FE_SUBDIRECTORY, 'emoji', '1f602.svg')}
/>
</div>